Skip to content

Commit 4d78a22

Browse files
Suresh SiddhaIngo Molnar
authored andcommitted
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>
1 parent 916671c commit 4d78a22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/sched/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5885,7 +5885,7 @@ build_overlap_sched_groups(struct sched_domain *sd, int cpu)
58855885
continue;
58865886

58875887
sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(),
5888-
GFP_KERNEL, cpu_to_node(i));
5888+
GFP_KERNEL, cpu_to_node(cpu));
58895889

58905890
if (!sg)
58915891
goto fail;

0 commit comments

Comments
 (0)