Skip to content

Commit 36e7d5a

Browse files
authored
Merge pull request #1612 from hodgesds/p2dq-pick-idle-cpu-fixes
scx_p2dq: Avoid aggressive return on cpu selection
2 parents dde8f4c + 0b9a551 commit 36e7d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheds/rust/scx_p2dq/src/bpf/main.bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static s32 pick_idle_cpu(struct task_struct *p, struct task_ctx *taskc,
436436
idle_cpumask = scx_bpf_get_idle_cpumask();
437437
idle_smtmask = scx_bpf_get_idle_smtmask();
438438

439-
if (!idle_cpumask || !idle_smtmask || bpf_cpumask_empty(idle_cpumask))
439+
if (!idle_cpumask || !idle_smtmask)
440440
goto found_cpu;
441441

442442
if (!(prev_cpuc = lookup_cpu_ctx(prev_cpu)) ||

0 commit comments

Comments
 (0)