tree a40624eb7c152ffaab95c9fa65e99075eee11018
parent 61b1b2d0239da82c0bed8adaa1d070c6551d4afd
author Andi Kleen <[EMAIL PROTECTED]> Fri, 29 Jul 2005 11:15:28 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Fri, 29 Jul 2005 11:45:58 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
arch/x86_64/kernel/setup.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -1081,8 +1081,7 @@ void __cpuinit identify_cpu(struct cpuin
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
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html