]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/powerpc/platforms/powermac/smp.c
[PATCH] more for_each_cpu() conversions
[net-next-2.6.git] / arch / powerpc / platforms / powermac / smp.c
index 6d64a9bf3474db8a29decd772667aafd6f03a8ea..1065d87fc27904f63b182f696f7f8fd8f8e9059b 100644 (file)
@@ -191,9 +191,7 @@ static void smp_psurge_message_pass(int target, int msg)
        if (num_online_cpus() < 2)
                return;
 
-       for (i = 0; i < NR_CPUS; i++) {
-               if (!cpu_online(i))
-                       continue;
+       for_each_online_cpu(i) {
                if (target == MSG_ALL
                    || (target == MSG_ALL_BUT_SELF && i != smp_processor_id())
                    || target == i) {