|
@@ -5985,16 +5985,13 @@ static int build_sched_domains(const struct cpumask *cpu_map,
|
|
|
sd = NULL;
|
|
|
for (tl = sched_domain_topology; tl->init; tl++) {
|
|
|
sd = build_sched_domain(tl, cpu_map, attr, sd, i);
|
|
|
+ if (tl == sched_domain_topology)
|
|
|
+ *per_cpu_ptr(d.sd, i) = sd;
|
|
|
if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))
|
|
|
sd->flags |= SD_OVERLAP;
|
|
|
if (cpumask_equal(cpu_map, sched_domain_span(sd)))
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
- while (sd->child)
|
|
|
- sd = sd->child;
|
|
|
-
|
|
|
- *per_cpu_ptr(d.sd, i) = sd;
|
|
|
}
|
|
|
|
|
|
/* Build the groups for the domains */
|