mirror of
https://github.com/sched-ext/scx.git
synced 2026-12-03 15:20:51 +00:00
A wakeup from an idle CPU comes from an interrupt. wake_affine() then makes that CPU the target if the previous one is busy, even on another node. The interrupts of one node can so gather every task they wake on it. fair.c does this only if the two CPUs share a cache. Add the check. Without a shared cache the decision falls through to the load comparison. The test for a synchronous waker that is alone on its CPU has to exclude an idle CPU now, since it has nothing queued either. Signed-off-by: Andrea Righi <arighi@nvidia.com>