]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smp: Introduce a helper function to check for pending IPIs
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 5 Nov 2025 09:54:07 +0000 (10:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Nov 2025 17:06:50 +0000 (18:06 +0100)
commitccde6525183c5489de293cf91a441585fff3c847
treef61079adb0c065a9360c85d733028b80eb2c586a
parent80ed617a62fe076bbfe700c8289fc2118d724821
smp: Introduce a helper function to check for pending IPIs

When governors used during cpuidle try to find the most optimal idle state
for a CPU or a group of CPUs, they are known to quite often fail. One
reason for this is, that they are not taking into account whether there has
been an IPI scheduled for any of the CPUs that are affected by the selected
idle state.

To enable pending IPIs to be taken into account for cpuidle decisions,
introduce a new helper function, cpus_peek_for_pending_ipi().

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
include/linux/smp.h
kernel/smp.c