aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2011-11-18 18:03:29 -0500
committerIngo Molnar <mingo@elte.hu>2011-12-06 03:06:26 -0500
commit4d78a2239e393f09e0964a2f8da394cc91d75155 (patch)
treeecc8ea8de1baa21cedf6b90d32c39fc2fe7bfeff /kernel/sched/core.c
parent916671c08b7808aebec87cc56c85788e665b3c6b (diff)
sched: Fix the sched group node allocation for SD_OVERLAP domains
For the SD_OVERLAP domain, sched_groups for each CPU's sched_domain are privately allocated and not shared with any other cpu. So the sched group allocation should come from the cpu's node for which SD_OVERLAP sched domain is being setup. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20111118230554.164910950@sbsiddha-desk.sc.intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index db313c33af29..07f1e9935f21 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5885,7 +5885,7 @@ build_overlap_sched_groups(struct sched_domain *sd, int cpu)
5885 continue; 5885 continue;
5886 5886
5887 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), 5887 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(),
5888 GFP_KERNEL, cpu_to_node(i)); 5888 GFP_KERNEL, cpu_to_node(cpu));
5889 5889
5890 if (!sg) 5890 if (!sg)
5891 goto fail; 5891 goto fail;