From: Andi Kleen Date: Fri, 29 Jul 2005 04:15:28 +0000 (-0700) Subject: [PATCH] x86_64: Minor clean up to CPU setup - use smp_processor_id instead of custom... X-Git-Tag: v3.12-rc1~43027 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3019e8ebe6281843488250ee3a539106806da93a;p=kernel%2Fkernel-generic.git [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: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 5fd0322..0c7ec94 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -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 }