powerpc/xmon: Use cpumask iterator to avoid warning
[pandora-kernel.git] / arch / powerpc / xmon / xmon.c
index 03a217a..b7e63d8 100644 (file)
@@ -975,7 +975,7 @@ static int cpu_cmd(void)
                /* print cpus waiting or in xmon */
                printf("cpus stopped:");
                count = 0;
-               for (cpu = 0; cpu < NR_CPUS; ++cpu) {
+               for_each_possible_cpu(cpu) {
                        if (cpumask_test_cpu(cpu, &cpus_in_xmon)) {
                                if (count == 0)
                                        printf(" %x", cpu);