mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reported-and-Tested-by: Greg Pearson <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
cb83b629ba
commit
dd7d8634e6
1 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue