diff options
-rw-r--r-- | arch/powerpc/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index bba87ca2b4d7..6a252c468d68 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -201,7 +201,7 @@ int __node_distance(int a, int b) | |||
201 | int distance = LOCAL_DISTANCE; | 201 | int distance = LOCAL_DISTANCE; |
202 | 202 | ||
203 | if (!form1_affinity) | 203 | if (!form1_affinity) |
204 | return distance; | 204 | return ((a == b) ? LOCAL_DISTANCE : REMOTE_DISTANCE); |
205 | 205 | ||
206 | for (i = 0; i < distance_ref_points_depth; i++) { | 206 | for (i = 0; i < distance_ref_points_depth; i++) { |
207 | if (distance_lookup_table[a][i] == distance_lookup_table[b][i]) | 207 | if (distance_lookup_table[a][i] == distance_lookup_table[b][i]) |