mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-29 12:40:24 +00:00
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:
parent
30feecc5ae
commit
2f280ac025
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user