Skip to content

sched: idle: cpuidle: cleanups and fixes

Daniel Lezcano linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest6 patches 23 repliesIn review

Changes in v3 from the cover letter

- fixed comment for the latency_req introduction back to the right patch
- added back the last_idx_state in the reflect function
- change the get_typical_interval to return the value

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sched: idle: Add a weak arch_cpu_idle_poll functionkernel/sched/idle.c+17 -125 replies
2/6sched: idle: cpuidle: Check the latency req before idledrivers/cpuidle/cpuidle.c drivers/cpuidle/governors/ladder.c drivers/cpuidle/governors/menu.c +2 more+25 -2313 replies
3/6sched: idle: Get the next timer event and pass it the cpuidle frameworkdrivers/cpuidle/cpuidle.c drivers/cpuidle/governors/ladder.c drivers/cpuidle/governors/menu.c +2 more+22 -203 replies
4/6cpuidle: idle: menu: Don't reflect when a state selection faileddrivers/cpuidle/governors/ladder.c drivers/cpuidle/governors/menu.c kernel/sched/idle.c+4 -51 reply
5/6cpuidle: menu: Fix the get_typical_intervaldrivers/cpuidle/governors/menu.c+9 -80 replies
6/6cpuidle: menu: Move the update function before its declarationdrivers/cpuidle/governors/menu.c+74 -750 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchNicolas PitreLen BrownPeter Zijlstra (Intel)Preeti U. Murthy
1/6R-b
2/6A-b R-b A-b R-b
3/6A-b R-b
4/6A-b R-b
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH V3 0/6] sched: idle: cpuidle: cleanups and fixes

Hi,

this patchset provides some cleanups to prepare the removal of the CPUIDLE_DRIVER_STATE_START macro in the cpuidle code. As the code has built on top of this macro adding more complexity and ugly hacks/tricks, it is hard to simply remove it. Some code has to be cleanup before, this is the purpose of this first patchset.

Changelog:

V3:
- fixed comment for the latency_req introduction back to the right patch
- added back the last_idx_state in the reflect function
- change the get_typical_interval to return the value

V2:
- fixed typo
- removed redundant comment
- fixed readability

Daniel Lezcano (6):
sched: idle: Add a weak arch_cpu_idle_poll function
sched: idle: cpuidle: Check the latency req before idle
sched: idle: Get the next timer event and pass it the cpuidle
framework
cpuidle: idle: menu: Don't reflect when a state selection failed
cpuidle: menu: Fix the get_typical_interval
cpuidle: menu: Move the update function before its declaration

 drivers/cpuidle/cpuidle.c          |  12 +--
 drivers/cpuidle/governors/ladder.c |  13 +--
 drivers/cpuidle/governors/menu.c   | 183 ++++++++++++++++++-------------------
 include/linux/cpuidle.h            |   9 +-
 kernel/sched/idle.c                |  55 +++++++----
 5 files changed, 140 insertions(+), 132 deletions(-)
Signature · 1 line
1.9.1