提交 1e48275a 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] more for_each_cpu() removal

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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 dfd8317d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册