Skip to content

Commit

Permalink
sched/numa: Fix the new NUMA topology bits
Browse files Browse the repository at this point in the history
There's no need to convert a node number to a node number by
pretending its a cpu number..

Reported-by: Yinghai Lu <yinghai@kernel.org>
Reported-and-Tested-by: Greg Pearson <greg.pearson@hp.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-0sqhrht34phowgclj12dgk8h@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 14, 2012
1 parent cb83b62 commit dd7d863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit dd7d863

Please sign in to comment.