Files
linux/kernel
K Prateek Nayak fe7171d0d5 sched/fair: Simplify SIS_UTIL handling in select_idle_cpu()
Use the "sd_llc" passed to select_idle_cpu() to obtain the
"sd_llc_shared" instead of dereferencing the per-CPU variable.

Since "sd->shared" is always reclaimed at the same time as "sd" via
call_rcu() and update_top_cache_domain() always ensures a valid
"sd->shared" assignment when "sd_llc" is present, "sd_llc->shared" can
always be dereferenced without needing an additional check.

While at it move the cpumask_and() operation after the SIS_UTIL bailout
check to avoid unnecessarily computing the cpumask.

Signed-off-by: K Prateek Nayak <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Chen Yu <[email protected]>
Reviewed-by: Shrikanth Hegde <[email protected]>
Reviewed-by: Dietmar Eggemann <[email protected]>
Tested-by: Dietmar Eggemann <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-03-18 09:06:50 +01:00
..
…
…
…
…
…
…
2026-03-11 12:01:07 +01:00
…
…
2026-01-05 16:43:34 +01:00
…
2025-11-04 08:30:50 +01:00
…
…
…
…
…
2025-10-29 10:29:54 +01:00
2026-01-26 19:07:13 -08:00
…
…
…