From: Suresh Siddha Date: Fri, 18 Nov 2011 23:03:29 +0000 (-0800) Subject: sched: Fix the sched group node allocation for SD_OVERLAP domains X-Git-Tag: v3.12-rc1~4169^2~9^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d78a2239e393f09e0964a2f8da394cc91d75155;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20111118230554.164910950@sbsiddha-desk.sc.intel.com Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index db313c3..07f1e99 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) continue; sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), - GFP_KERNEL, cpu_to_node(i)); + GFP_KERNEL, cpu_to_node(cpu)); if (!sg) goto fail;