diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 547b7d3ff8931c0903008bb8965e066799c67aeb..3388387e1330605644a436cf3d8e4345641527db 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5347,7 +5347,7 @@ build_sched_groups(struct sched_domain *sd, int cpu) get_group(cpu, sdd, &sd->groups); atomic_inc(&sd->groups->ref); - if (cpu != cpumask_first(sched_domain_span(sd))) + if (cpu != cpumask_first(span)) return 0; lockdep_assert_held(&sched_domains_mutex);