Skip to content

cpuidle: Handle TIF_NR_POLLING on behalf of polling idle states

Frederic Weisbecker linux-arch linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 9 repliesIn review
  2. v15 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpuidle: Remove unnecessary current_clr_polling_and_test() from haltpolldrivers/cpuidle/cpuidle-haltpoll.c+0 -30 replies
2/6cpuidle: Introduce CPUIDLE_FLAG_MWAITdrivers/acpi/processor_idle.c drivers/idle/intel_idle.c include/linux/cpuidle.h+8 -13 replies
3/6x86/cpuidle: Move buggy mwait implementations away from CPUIDLE_FLAG_MWAITarch/arm/include/asm/cpuidle.h arch/arm64/include/asm/cpuidle.h arch/powerpc/include/asm/cpuidle.h +6 more+44 -31 reply
4/6cpuidle: Handle TIF_NR_POLLING on behalf of CPUIDLE_FLAG_MWAIT statesarch/x86/include/asm/mwait.h drivers/cpuidle/cpuidle.c include/linux/sched/idle.h +1 more+53 -432 replies
5/6cpuidle: Remove call_cpuidle_s2idle()kernel/sched/idle.c+6 -171 reply
6/6cpuidle: 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+13 -401 reply

Reviews trailers per patch

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

PatchRafael J. WysockiK Prateek Nayak
SeriesT-b
1/6A-b
2/6
3/6
4/6
5/6A-b
6/6A-b

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

Read the v3 thread

Cover letter [PATCH 0/6 v3] cpuidle: Handle TIF_NR_POLLING on behalf of polling idle states

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

Changes since v2:

_ Handle buggy mwait implementations (thanks Rafael)

Frederic Weisbecker (4):
cpuidle: Remove unnecessary current_clr_polling_and_test() from
haltpoll
x86/cpuidle: Move buggy mwait implementations away from
CPUIDLE_FLAG_MWAIT
cpuidle: Remove call_cpuidle_s2idle()
cpuidle: Handle TIF_NR_POLLING on behalf of software polling idle
states

Peter Zijlstra (2):
cpuidle: Introduce CPUIDLE_FLAG_MWAIT
cpuidle: Handle TIF_NR_POLLING on behalf of CPUIDLE_FLAG_MWAIT states

 arch/arm/include/asm/cpuidle.h     |  2 ++
 arch/arm64/include/asm/cpuidle.h   |  3 ++
 arch/powerpc/include/asm/cpuidle.h |  4 +++
 arch/riscv/include/asm/cpuidle.h   |  2 ++
 arch/x86/include/asm/cpuidle.h     | 12 +++++++
 arch/x86/include/asm/mwait.h       | 27 +++++++--------
 drivers/acpi/processor_idle.c      |  5 +++
 drivers/cpuidle/cpuidle-haltpoll.c |  3 --
 drivers/cpuidle/cpuidle-powernv.c  | 10 ------
 drivers/cpuidle/cpuidle-pseries.c  | 11 -------
 drivers/cpuidle/cpuidle.c          | 22 ++++++++++++-
 drivers/cpuidle/poll_state.c       | 30 +++++++----------
 drivers/idle/intel_idle.c          |  8 +++++
 include/asm-generic/Kbuild         |  1 +
 include/asm-generic/cpuidle.h      | 10 ++++++
 include/linux/cpuidle.h            |  1 +
 include/linux/sched/idle.h         |  7 +++-
 kernel/sched/idle.c                | 53 +++++++++---------------------
 18 files changed, 114 insertions(+), 97 deletions(-)
 create mode 100644 arch/x86/include/asm/cpuidle.h
 create mode 100644 include/asm-generic/cpuidle.h
Signature · 1 line
2.46.0