[PATCH 00/10] timers/cpuidle: Fixes and cleanups

From: Frederic Weisbecker
Date: Fri Aug 11 2023 - 13:01:00 EST


Hi,

The first part of the series is cpuidle callback fixes against timers,
some of which haven't been Signed by Peter yet.

Another part is removing the overhead of useless TIF_NR_POLLING clearing.

The rest is comments.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/idle

HEAD: b66dd12bb29cca558b9323f2b270a7dae8f56c48

Thanks,
Frederic
---

Frederic Weisbecker (8):
x86: Add a comment about the "magic" behind shadow sti before mwait
cpuidle: Report illegal tick stopped while polling
cpuidle: Comment about timers requirements VS idle handler
cpuidle: Remove unnecessary current_clr_polling_and_test() from haltpoll
cpuidle: Remove unnecessary current_clr_polling() on poll_idle()
x86: Remove __current_clr_polling() from mwait_idle()
x86: Remove the current_clr_polling() call upon mwait exit
sched/timers: Explain why idle task schedules out on remote timer enqueue

Peter Zijlstra (2):
cpuidle: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram
loongson: Fix idle VS timer enqueue


arch/loongarch/kernel/genex.S | 32 ++++++++++++++++++--------------
arch/loongarch/kernel/idle.c | 1 -
arch/x86/include/asm/mwait.h | 21 ++++++++++++++++++---
arch/x86/kernel/process.c | 1 -
drivers/acpi/acpi_pad.c | 1 +
drivers/cpuidle/cpuidle-haltpoll.c | 5 +----
drivers/cpuidle/poll_state.c | 10 ++++++++--
drivers/idle/intel_idle.c | 19 +++++++------------
kernel/sched/core.c | 22 ++++++++++++++++++++++
kernel/sched/idle.c | 30 ++++++++++++++++++++++++++++++
10 files changed, 105 insertions(+), 37 deletions(-)