Skip to contentSkip to conversation

x86: remove dead code

PATCH New Jan Beulich 1 participant 1 message Dec 13, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: remove dead code

Neither __cpu_disable() nor __cpu_die() are being referenced without CONFIG_HOTPLUG_CPU.

 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 */