aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-07-29 00:15:28 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-29 00:45:58 -0400
commit3019e8ebe6281843488250ee3a539106806da93a (patch)
treea40624eb7c152ffaab95c9fa65e99075eee11018
parent61b1b2d0239da82c0bed8adaa1d070c6551d4afd (diff)
[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 <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--arch/x86_64/kernel/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 5fd03225058a..0c7ec94004a2 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)
1081 else 1081 else
1082 mtrr_ap_init(); 1082 mtrr_ap_init();
1083#ifdef CONFIG_NUMA 1083#ifdef CONFIG_NUMA
1084 if (c != &boot_cpu_data) 1084 numa_add_cpu(smp_processor_id());
1085 numa_add_cpu(c - cpu_data);
1086#endif 1085#endif
1087} 1086}
1088 1087