Skip to contentSkip to conversation

ia64: remove dead code

PATCH NAK [email protected] 1 participant 1 message Feb 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ia64: remove dead code

From: "Jan Beulich" <[email protected]>

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

---

 arch/ia64/kernel/smpboot.c |   11 -----------
 1 file changed, 11 deletions(-)
arch/ia64/kernel/smpboot.c renamed from arch/ia64/kernel/smpboot.c~ia64-remove-dead-code +0 -11
diff -puN arch/ia64/kernel/smpboot.c~ia64-remove-dead-code arch/ia64/kernel/smpboot.c
@@ -767,17 +767,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 */
 
 void

_