diff options
author | Yinghai Lu <yinghai@kernel.org> | 2011-01-21 18:29:54 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-26 02:44:50 -0500 |
commit | 792363d2beceb1c7d865e517fa9939c8b8c1442a (patch) | |
tree | 734b361838e080231bf1d91a559be0dc6f5aad23 | |
parent | b3d7336db553d318e7ec042eb50a70d307013339 (diff) |
x86: Don't copy per_cpu cpuinfo for BSP two times
smp_store_cpu_info(0) will do that.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
LKML-Reference: <4D3A16F2.5090902@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smpboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index d396155f436c..a7a3d1acc632 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1071,13 +1071,13 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1071 | 1071 | ||
1072 | preempt_disable(); | 1072 | preempt_disable(); |
1073 | smp_cpu_index_default(); | 1073 | smp_cpu_index_default(); |
1074 | memcpy(__this_cpu_ptr(&cpu_info), &boot_cpu_data, sizeof(cpu_info)); | 1074 | |
1075 | cpumask_copy(cpu_callin_mask, cpumask_of(0)); | ||
1076 | mb(); | ||
1077 | /* | 1075 | /* |
1078 | * Setup boot CPU information | 1076 | * Setup boot CPU information |
1079 | */ | 1077 | */ |
1080 | smp_store_cpu_info(0); /* Final full version of the data */ | 1078 | smp_store_cpu_info(0); /* Final full version of the data */ |
1079 | cpumask_copy(cpu_callin_mask, cpumask_of(0)); | ||
1080 | mb(); | ||
1081 | #ifdef CONFIG_X86_32 | 1081 | #ifdef CONFIG_X86_32 |
1082 | boot_cpu_logical_apicid = logical_smp_processor_id(); | 1082 | boot_cpu_logical_apicid = logical_smp_processor_id(); |
1083 | #endif | 1083 | #endif |