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>

authored by Anton Blanchard and committed by Benjamin Herrenschmidt d69043e8 5de16699

+1 -1
+1 -1
arch/powerpc/mm/numa.c
··· 1341 volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts; 1342 1343 for (i = 0; i < distance_ref_points_depth; i++) { 1344 - if (hypervisor_counts[i] > counts[i]) { 1345 counts[i] = hypervisor_counts[i]; 1346 changed = 1; 1347 }
··· 1341 volatile u8 *hypervisor_counts = lppaca[cpu].vphn_assoc_counts; 1342 1343 for (i = 0; i < distance_ref_points_depth; i++) { 1344 + if (hypervisor_counts[i] != counts[i]) { 1345 counts[i] = hypervisor_counts[i]; 1346 changed = 1; 1347 }