x86: remove dead code
PATCH 1/1 x86: remove dead code
Neither __cpu_disable() nor __cpu_die() are being referenced without CONFIG_HOTPLUG_CPU.
Signed-off-by Jan Beulich <[email protected]>
arch/x86/kernel/smpboot_32.c | 11 ----------- arch/x86/kernel/smpboot_64.c | 12 ------------ 2 files changed, 23 deletions(-)
arch/x86/kernel/smpboot_32.c +0 -11
@@ -1232,17 +1232,6 @@ void __cpu_die(unsigned int cpu) }printk (KERN_ERR "CPU %u didn't die...\n" , cpu); } -#else /* ... !CONFIG_HOTPLUG_CPU */ -int __cpu_disable (void ) -{ -return -ENOSYS ; -} - -void __cpu_die (unsigned int cpu) -{ -/* We said "no" in __cpu_disable */ -BUG (); -}#endif /* CONFIG_HOTPLUG_CPU */ int __cpuinit native_cpu_up (unsigned int cpu)
arch/x86/kernel/smpboot_64.c +0 -12
@@ -1084,16 +1084,4 @@ static __init int setup_additional_cpus( }early_param ("additional_cpus" , setup_additional_cpus); -#else /* ... !CONFIG_HOTPLUG_CPU */ - -int __cpu_disable (void ) -{ -return -ENOSYS ; -} - -void __cpu_die (unsigned int cpu) -{ -/* We said "no" in __cpu_disable */ -BUG (); -}#endif /* CONFIG_HOTPLUG_CPU */