diff options
-rw-r--r-- | arch/x86/kernel/topology.c | 6 | ||||
-rw-r--r-- | include/asm-x86/cpu.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index c25f23eb397c..8caa0b777466 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c | |||
@@ -44,15 +44,15 @@ int arch_register_cpu(int num) | |||
44 | * Also certain PCI quirks require not to enable hotplug control | 44 | * Also certain PCI quirks require not to enable hotplug control |
45 | * for all CPU's. | 45 | * for all CPU's. |
46 | */ | 46 | */ |
47 | if (num && enable_cpu_hotplug) | 47 | #ifdef CONFIG_HOTPLUG_CPU |
48 | if (num) | ||
48 | cpu_devices[num].cpu.hotpluggable = 1; | 49 | cpu_devices[num].cpu.hotpluggable = 1; |
50 | #endif | ||
49 | 51 | ||
50 | return register_cpu(&cpu_devices[num].cpu, num); | 52 | return register_cpu(&cpu_devices[num].cpu, num); |
51 | } | 53 | } |
52 | 54 | ||
53 | #ifdef CONFIG_HOTPLUG_CPU | 55 | #ifdef CONFIG_HOTPLUG_CPU |
54 | int enable_cpu_hotplug = 1; | ||
55 | |||
56 | void arch_unregister_cpu(int num) { | 56 | void arch_unregister_cpu(int num) { |
57 | return unregister_cpu(&cpu_devices[num].cpu); | 57 | return unregister_cpu(&cpu_devices[num].cpu); |
58 | } | 58 | } |
diff --git a/include/asm-x86/cpu.h b/include/asm-x86/cpu.h index 9d914e1e4aad..b1bc7b1b64b0 100644 --- a/include/asm-x86/cpu.h +++ b/include/asm-x86/cpu.h | |||
@@ -13,9 +13,6 @@ struct i386_cpu { | |||
13 | extern int arch_register_cpu(int num); | 13 | extern int arch_register_cpu(int num); |
14 | #ifdef CONFIG_HOTPLUG_CPU | 14 | #ifdef CONFIG_HOTPLUG_CPU |
15 | extern void arch_unregister_cpu(int); | 15 | extern void arch_unregister_cpu(int); |
16 | extern int enable_cpu_hotplug; | ||
17 | #else | ||
18 | #define enable_cpu_hotplug 0 | ||
19 | #endif | 16 | #endif |
20 | 17 | ||
21 | DECLARE_PER_CPU(int, cpu_state); | 18 | DECLARE_PER_CPU(int, cpu_state); |