From: Peter Zijlstra Date: Thu, 10 May 2012 22:56:20 +0000 (+0200) Subject: sched/numa: Fix the new NUMA topology bits X-Git-Tag: upstream/snapshot3+hdmi~7434^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd7d8634e619b715a537402672d1383535ff4c54;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sched/numa: Fix the new NUMA topology bits There's no need to convert a node number to a node number by pretending its a cpu number.. Reported-by: Yinghai Lu Reported-and-Tested-by: Greg Pearson Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-0sqhrht34phowgclj12dgk8h@git.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b4f2096..0738036 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6395,8 +6395,7 @@ static void sched_init_numa(void) sched_domains_numa_masks[i][j] = mask; for (k = 0; k < nr_node_ids; k++) { - if (node_distance(cpu_to_node(j), k) > - sched_domains_numa_distance[i]) + if (node_distance(j, k) > sched_domains_numa_distance[i]) continue; cpumask_or(mask, mask, cpumask_of_node(k));