[PATCH] x86_64: Minor clean up to CPU setup - use smp_processor_id instead of custom...
authorAndi Kleen <ak@suse.de>
Fri, 29 Jul 2005 04:15:28 +0000 (21:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Jul 2005 04:45:58 +0000 (21:45 -0700)
Does not change any semantics because numa_add_cpu checks for CPU 0 anyways.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/setup.c

index 5fd03225058aa410bb60e461bb149db048844583..0c7ec94004a21238da6b4174f5a983f7dc49ffa7 100644 (file)
@@ -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
 }