[PATCH] more for_each_cpu() removal
authorAndrew Morton <akpm@osdl.org>
Sun, 25 Jun 2006 12:46:42 +0000 (05:46 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:00:54 +0000 (10:00 -0700)
It's going away.

I wonder if this code really meant to iterate across not-present, not-online
CPUs.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/platforms/cell/cbe_regs.c

index 2dfde61c8412ff6fafe023e7f5d4f89d1148ea44..ce696c1cca75b4946eced462d48a2f9e9df0638f 100644 (file)
@@ -89,7 +89,7 @@ void __init cbe_regs_init(void)
        struct device_node *cpu;
 
        /* Build local fast map of CPUs */
-       for_each_cpu(i)
+       for_each_possible_cpu(i)
                cbe_thread_map[i].cpu_node = of_get_cpu_node(i, NULL);
 
        /* Find maps for each device tree CPU */
@@ -110,7 +110,7 @@ void __init cbe_regs_init(void)
                        return;
                }
                map->cpu_node = cpu;
-               for_each_cpu(i)
+               for_each_possible_cpu(i)
                        if (cbe_thread_map[i].cpu_node == cpu)
                                cbe_thread_map[i].regs = map;