powerpc/smp: Remove unused smp_ops->cpu_enable()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Feb 2011 01:49:01 +0000 (12:49 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Apr 2011 04:37:14 +0000 (15:37 +1100)
Remove the last remnants of cpu_enable(), everybody uses the normal
__cpu_up() path now

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

index fe56a23e1ff0c1b79d3d66f2c2cf89b08b5eb9d0..bcfc0da2cef17c311b7f563c0d358850d1e8f14e 100644 (file)
@@ -37,7 +37,6 @@ struct smp_ops_t {
        void  (*setup_cpu)(int nr);
        void  (*take_timebase)(void);
        void  (*give_timebase)(void);
-       int   (*cpu_enable)(unsigned int nr);
        int   (*cpu_disable)(void);
        void  (*cpu_die)(unsigned int nr);
        int   (*cpu_bootable)(unsigned int nr);
index 19d0c25762824ce55d85f01b176c0d6354580ce8..be7d7282341ccfe65bf47bf71dc5d59e75040a67 100644 (file)
@@ -350,21 +350,11 @@ void generic_mach_cpu_die(void)
 }
 #endif
 
-static int __devinit cpu_enable(unsigned int cpu)
-{
-       if (smp_ops && smp_ops->cpu_enable)
-               return smp_ops->cpu_enable(cpu);
-
-       return -ENOSYS;
-}
-
 int __cpuinit __cpu_up(unsigned int cpu)
 {
        int c;
 
        secondary_ti = current_set[cpu];
-       if (!cpu_enable(cpu))
-               return 0;
 
        if (smp_ops == NULL ||
            (smp_ops->cpu_bootable && !smp_ops->cpu_bootable(cpu)))
index c95215f4f8b60bebf1bec492b5a8e618d054ea29..ebd2b7e037f0249900f5d0d8ef07acd891dcebf0 100644 (file)
@@ -923,8 +923,6 @@ struct smp_ops_t core99_smp_ops = {
 # if defined(CONFIG_PPC64)
        .cpu_disable    = generic_cpu_disable,
        .cpu_die        = generic_cpu_die,
-       /* intentionally do *NOT* assign cpu_enable,
-        * the generic code will use kick_cpu then! */
 # endif
 #endif
 };