diff options
author | Anton Blanchard <anton@samba.org> | 2011-01-29 07:26:19 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-02-06 21:06:01 -0500 |
commit | d69043e8069f493ebee9472bcc78b3f54c5c27d9 (patch) | |
tree | 8b94f0000312fc3295e28b3d3a0c25074b62c71f /arch/powerpc | |
parent | 5de1669910a59025e6cf24baef242a6c264d5752 (diff) |
powerpc/numa: Check for all VPHN changes
The hypervisor uses unsigned 1 byte counters to signal topology changes to
the OS. Since they can wrap we need to check for any difference, not just if
the hypervisor count is greater than the previous count.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-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 f25633d3d008..b2937efdfd7a 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -1341,7 +1341,7 @@ static int update_cpu_associativity_changes_mask(void) | |||
1341 | volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts; | 1341 | volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts; |
1342 | 1342 | ||
1343 | for (i = 0; i < distance_ref_points_depth; i++) { | 1343 | for (i = 0; i < distance_ref_points_depth; i++) { |
1344 | if (hypervisor_counts[i] > counts[i]) { | 1344 | if (hypervisor_counts[i] != counts[i]) { |
1345 | counts[i] = hypervisor_counts[i]; | 1345 | counts[i] = hypervisor_counts[i]; |
1346 | changed = 1; | 1346 | changed = 1; |
1347 | } | 1347 | } |