|
@@ -506,12 +506,12 @@ enum s_alloc {
|
|
|
*/
|
|
|
static void build_group_mask(struct sched_domain *sd, struct sched_group *sg)
|
|
|
{
|
|
|
- const struct cpumask *span = sched_domain_span(sd);
|
|
|
+ const struct cpumask *sg_span = sched_group_cpus(sg);
|
|
|
struct sd_data *sdd = sd->private;
|
|
|
struct sched_domain *sibling;
|
|
|
int i;
|
|
|
|
|
|
- for_each_cpu(i, span) {
|
|
|
+ for_each_cpu(i, sg_span) {
|
|
|
sibling = *per_cpu_ptr(sdd->sd, i);
|
|
|
if (!cpumask_test_cpu(i, sched_domain_span(sibling)))
|
|
|
continue;
|