Commit f712c0c7 authored by Siddha, Suresh B's avatar Siddha, Suresh B Committed by Linus Torvalds

[PATCH] sched: build_sched_domains() fix

Use the correct groups while initializing sched groups power for
allnodes_domain.  This fixes the crash observed while creating exclusive
cpusets.
Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Reported-and-tested-by: default avatarPaul Jackson <pj@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b6ff5083
...@@ -6494,7 +6494,12 @@ static int build_sched_domains(const cpumask_t *cpu_map) ...@@ -6494,7 +6494,12 @@ static int build_sched_domains(const cpumask_t *cpu_map)
for (i = 0; i < MAX_NUMNODES; i++) for (i = 0; i < MAX_NUMNODES; i++)
init_numa_sched_groups_power(sched_group_nodes[i]); init_numa_sched_groups_power(sched_group_nodes[i]);
init_numa_sched_groups_power(sched_group_allnodes); if (sched_group_allnodes) {
int group = cpu_to_allnodes_group(first_cpu(*cpu_map));
struct sched_group *sg = &sched_group_allnodes[group];
init_numa_sched_groups_power(sg);
}
#endif #endif
/* Attach the domains */ /* Attach the domains */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment