提交 3019e8eb 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[PATCH] x86_64: Minor clean up to CPU setup - use smp_processor_id instead of custom hack

Does not change any semantics because numa_add_cpu checks for CPU 0 anyways.
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 61b1b2d0
......@@ -1081,8 +1081,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
else
mtrr_ap_init();
#ifdef CONFIG_NUMA
if (c != &boot_cpu_data)
numa_add_cpu(c - cpu_data);
numa_add_cpu(smp_processor_id());
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册