Re: [PATCH v4 1/2] smp: Introduce a helper function to check for pending IPIs

From: Thomas Gleixner

Date: Thu Nov 13 2025 - 10:29:33 EST


On Wed, Nov 05 2025 at 10:54, Ulf Hansson wrote:
> 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@xxxxxxxxxxxxx>
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>