diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 1341087361ace01dbb984414c8ff6871f43eb72d..b310748225edd56180e03d6acde2e9f3cb39685a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5045,7 +5045,7 @@ static bool try_steal_cookie(int this, int that) if (p == src->core_pick || p == src->curr) goto next; - if (!cpumask_test_cpu(this, &p->cpus_mask)) + if (!is_cpu_allowed(p, this)) goto next; if (p->core_occupation > dst->idle->core_occupation)