]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/smp: Remove unused generic_cpu_enable()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Feb 2011 01:46:41 +0000 (12:46 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Apr 2011 04:37:12 +0000 (15:37 +1100)
Nobody uses it, besides we should always use the normal __cpu_up
path anyways

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c

index 1de0e97a394fd380c73074a147ac57663a881e37..a629b6fef8823e33c840495981a15a7de3628f04 100644 (file)
@@ -43,7 +43,6 @@ DECLARE_PER_CPU(unsigned int, cpu_pvr);
 #ifdef CONFIG_HOTPLUG_CPU
 extern void fixup_irqs(const struct cpumask *map);
 int generic_cpu_disable(void);
-int generic_cpu_enable(unsigned int cpu);
 void generic_cpu_die(unsigned int cpu);
 void generic_mach_cpu_die(void);
 #endif
index 3c0fab5e1e16c033f15928eae5217da0e30e6931..19d0c25762824ce55d85f01b176c0d6354580ce8 100644 (file)
@@ -322,28 +322,6 @@ int generic_cpu_disable(void)
        return 0;
 }
 
-int generic_cpu_enable(unsigned int cpu)
-{
-       /* Do the normal bootup if we haven't
-        * already bootstrapped. */
-       if (system_state != SYSTEM_RUNNING)
-               return -ENOSYS;
-
-       /* get the target out of it's holding state */
-       per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
-       smp_wmb();
-
-       while (!cpu_online(cpu))
-               cpu_relax();
-
-#ifdef CONFIG_PPC64
-       fixup_irqs(cpu_online_mask);
-       /* counter the irq disable in fixup_irqs */
-       local_irq_enable();
-#endif
-       return 0;
-}
-
 void generic_cpu_die(unsigned int cpu)
 {
        int i;