diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 6b30b3811c880c257d61b2f8a2021212101a0d64..dc22e76fd6c9210560fcb34da69505fecc1762cc 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8322,7 +8322,7 @@ static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, bool struct cpumask *tmpmask = to_cpumask(tg->sf_ctx->span); for_each_cpu_wrap(cpu, tmpmask, target + 1) { - if (!cpumask_test_cpu(cpu, tmpmask)) + if (!cpumask_test_cpu(cpu, cpus)) continue; if (has_idle_core) {