scx_layered: Use idle smt mask for idle selection

In the non topology aware code the idle smt mask is used for finding
idle cpus. Update topology aware idle selection to also use the idle
smt mask. In certain benchmarks this can improve performance.

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
Daniel Hodges 2024-10-04 21:40:39 -04:00
parent 30feecc5ae
commit 2f280ac025

View File

@ -650,7 +650,7 @@ s32 pick_idle_cpu(struct task_struct *p, s32 prev_cpu,
idle_cpumask)) >= 0)
goto out_put;
} else {
idle_cpumask = scx_bpf_get_idle_cpumask();
idle_cpumask = scx_bpf_get_idle_smtmask();
if (!pref_idle_cpumask || !idle_cpumask) {
cpu = -1;
goto out_put;