Skip to content

Commit

Permalink
powerpc/numa: Check for all VPHN changes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
antonblanchard authored and ozbenh committed Feb 7, 2011
1 parent 5de1669 commit d69043e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ static int update_cpu_associativity_changes_mask(void)
volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts;

for (i = 0; i < distance_ref_points_depth; i++) {
if (hypervisor_counts[i] > counts[i]) {
if (hypervisor_counts[i] != counts[i]) {
counts[i] = hypervisor_counts[i];
changed = 1;
}
Expand Down

0 comments on commit d69043e

Please sign in to comment.