Skip to content

cpuidle: Handle TIF_NR_POLLING on behalf of polling idle states

Frederic Weisbecker linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogramarch/x86/include/asm/mwait.h drivers/idle/intel_idle.c+16 -140 replies
2/7x86: Add a comment about the "magic" behind shadow sti before mwaitarch/x86/include/asm/mwait.h+9 -00 replies
3/7cpuidle: Remove unnecessary current_clr_polling_and_test() from haltpolldrivers/cpuidle/cpuidle-haltpoll.c+1 -40 replies
4/7cpuidle: s/CPUIDLE_FLAG_POLLING/CPUIDLE_FLAG_POLLING_SOFTDocumentation/driver-api/pm/cpuidle.rst drivers/cpuidle/cpuidle-powernv.c drivers/cpuidle/cpuidle-pseries.c +5 more+16 -162 replies
5/7cpuidle: Introduce CPUIDLE_FLAG_POLLING_HARDdrivers/acpi/processor_idle.c drivers/idle/intel_idle.c include/linux/cpuidle.h+9 -22 replies
6/7cpuidle: Handle TIF_NR_POLLING on behalf of CPUIDLE_FLAG_POLLING_HARD statesarch/x86/include/asm/mwait.h drivers/cpuidle/cpuidle.c include/linux/sched/idle.h +1 more+42 -302 replies
7/7cpuidle: Handle TIF_NR_POLLING on behalf of software polling idle statesdrivers/cpuidle/cpuidle-powernv.c drivers/cpuidle/cpuidle-pseries.c drivers/cpuidle/cpuidle.c +1 more+14 -411 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiPeter Zijlstra
1/7A-b
2/7A-b
3/7A-b
4/7
5/7Not-yet-signed-off-by
6/7Not-yet-signed-off-by
7/7

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/7] cpuidle: Handle TIF_NR_POLLING on behalf of polling idle states

The TIF_NR_POLLING handling against polling idle states (mwait and also software polling) is a bit messy, with quite some wasted cycles spent on useless atomic operations. This is a try to consolidate this state handling from the cpuidle core.

Frederic Weisbecker (4):
x86: Add a comment about the "magic" behind shadow sti before mwait
cpuidle: Remove unnecessary current_clr_polling_and_test() from
haltpoll
cpuidle: s/CPUIDLE_FLAG_POLLING/CPUIDLE_FLAG_POLLING_SOFT
cpuidle: Handle TIF_NR_POLLING on behalf of software polling idle
states

Peter Zijlstra (3):
x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram
cpuidle: Introduce CPUIDLE_FLAG_POLLING_HARD
cpuidle: Handle TIF_NR_POLLING on behalf of CPUIDLE_FLAG_POLLING_HARD
states

 Documentation/driver-api/pm/cpuidle.rst |  2 +-
 arch/x86/include/asm/mwait.h            | 23 +++++++++++---
 drivers/acpi/processor_idle.c           |  3 ++
 drivers/cpuidle/cpuidle-haltpoll.c      |  5 +---
 drivers/cpuidle/cpuidle-powernv.c       | 12 +-------
 drivers/cpuidle/cpuidle-pseries.c       | 15 ++--------
 drivers/cpuidle/cpuidle.c               | 22 +++++++++++++-
 drivers/cpuidle/governors/ladder.c      |  4 +--
 drivers/cpuidle/governors/menu.c        |  8 ++---
 drivers/cpuidle/governors/teo.c         |  8 ++---
 drivers/cpuidle/poll_state.c            | 32 ++++++++------------
 drivers/idle/intel_idle.c               | 24 +++++++--------
 include/linux/cpuidle.h                 |  3 +-
 include/linux/sched/idle.h              |  7 ++++-
 kernel/sched/idle.c                     | 40 +++++++++----------------
 15 files changed, 104 insertions(+), 104 deletions(-)
Signature · 1 line
2.42.1