Skip to content

cpuidle: Rework the handling of the poll state

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cpuidle: Eliminate the CPUIDLE_DRIVER_STATE_START symboldrivers/acpi/processor_idle.c drivers/cpuidle/driver.c drivers/cpuidle/governors/ladder.c +2 more+21 -240 replies
2/3cpuidle: Move polling state initialization code to separate filedrivers/cpuidle/Makefile drivers/cpuidle/driver.c drivers/cpuidle/poll_state.c +1 more+43 -310 replies
3/3cpuidle: Make drivers initialize polling statedrivers/acpi/processor_idle.c drivers/cpuidle/driver.c drivers/cpuidle/poll_state.c +2 more+12 -70 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSudeep HollaDaniel Lezcano
SeriesT-b A-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] cpuidle: Rework the handling of the poll state

Hi,

On x86 the fist idle state is a polling one, but the way it is set up is far from straightforward and then it is avoided by governors in rather somewhat convoluted fashion.

Make this more clear by explicitly flagging that state as "polling" and checking its flag where it needs to be avoided instead of using arch-dependent numbering of idle states (patch [1/3]), move the polling state code from driver.c to a separate C file (patch [2/3]) and move the initialization of it from the core to the relevant cpuidle drivers - ACPI and intel_idle (patch [3/3]).

Thanks,
Rafael