Fix APs not being able to steal from CPU 0

This commit is contained in:
aarch
2026-09-01 11:47:39 +02:00
committed by Jacob Lorentzon
parent 9ce506cc4f
commit 77fec3254f
+1 -2
View File
@@ -717,8 +717,7 @@ fn select_next_context(
if should_steal {
let targets = steal_hint
.into_iter()
.chain((1..num_cpu))
.map(|i| (curr_cpu + i % num_cpu));
.chain((1..num_cpu).map(|i| (curr_cpu + i) % num_cpu));
for target_cpu in targets {
if target_cpu == curr_cpu {