diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2012-11-13 14:32:47 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-11-14 18:28:10 -0500 |
commit | 27fd185f3d9e83c64b7a596881d7751a638c9683 (patch) | |
tree | 9a57964757232e78ad254967b6d1e8acb625a831 | |
parent | e1c467e69040c3be68959332959c07fb3d818e87 (diff) |
x86, hotplug: During CPU0 online, enable x2apic, set_numa_node.
Previously these functions were not run on the BSP (CPU 0, the boot processor)
since the boot processor init would only be executed before this functionality
was initialized.
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1352835171-3958-11-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 7505f7b13e71..ca165ac6793b 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1237,7 +1237,7 @@ void __cpuinit cpu_init(void) | |||
1237 | oist = &per_cpu(orig_ist, cpu); | 1237 | oist = &per_cpu(orig_ist, cpu); |
1238 | 1238 | ||
1239 | #ifdef CONFIG_NUMA | 1239 | #ifdef CONFIG_NUMA |
1240 | if (cpu != 0 && this_cpu_read(numa_node) == 0 && | 1240 | if (this_cpu_read(numa_node) == 0 && |
1241 | early_cpu_to_node(cpu) != NUMA_NO_NODE) | 1241 | early_cpu_to_node(cpu) != NUMA_NO_NODE) |
1242 | set_numa_node(early_cpu_to_node(cpu)); | 1242 | set_numa_node(early_cpu_to_node(cpu)); |
1243 | #endif | 1243 | #endif |
@@ -1269,8 +1269,7 @@ void __cpuinit cpu_init(void) | |||
1269 | barrier(); | 1269 | barrier(); |
1270 | 1270 | ||
1271 | x86_configure_nx(); | 1271 | x86_configure_nx(); |
1272 | if (cpu != 0) | 1272 | enable_x2apic(); |
1273 | enable_x2apic(); | ||
1274 | 1273 | ||
1275 | /* | 1274 | /* |
1276 | * set up and load the per-CPU TSS | 1275 | * set up and load the per-CPU TSS |