diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-02-10 20:49:01 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-01 00:37:14 -0400 |
commit | 7a53a4fe707a93a33f6c5d42173bf213cb6ff71d (patch) | |
tree | 535df74d0db6ef01e827a68e024e1042d8e3bff9 /arch/powerpc | |
parent | b527d07114fdab83f39040c69b4b0a4b1b232c16 (diff) |
powerpc/smp: Remove unused smp_ops->cpu_enable()
Remove the last remnants of cpu_enable(), everybody uses the normal
__cpu_up() path now
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/machdep.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/smp.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/smp.c | 2 |
3 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index fe56a23e1ff0..bcfc0da2cef1 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h | |||
@@ -37,7 +37,6 @@ struct smp_ops_t { | |||
37 | void (*setup_cpu)(int nr); | 37 | void (*setup_cpu)(int nr); |
38 | void (*take_timebase)(void); | 38 | void (*take_timebase)(void); |
39 | void (*give_timebase)(void); | 39 | void (*give_timebase)(void); |
40 | int (*cpu_enable)(unsigned int nr); | ||
41 | int (*cpu_disable)(void); | 40 | int (*cpu_disable)(void); |
42 | void (*cpu_die)(unsigned int nr); | 41 | void (*cpu_die)(unsigned int nr); |
43 | int (*cpu_bootable)(unsigned int nr); | 42 | int (*cpu_bootable)(unsigned int nr); |
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 19d0c2576282..be7d7282341c 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -350,21 +350,11 @@ void generic_mach_cpu_die(void) | |||
350 | } | 350 | } |
351 | #endif | 351 | #endif |
352 | 352 | ||
353 | static int __devinit cpu_enable(unsigned int cpu) | ||
354 | { | ||
355 | if (smp_ops && smp_ops->cpu_enable) | ||
356 | return smp_ops->cpu_enable(cpu); | ||
357 | |||
358 | return -ENOSYS; | ||
359 | } | ||
360 | |||
361 | int __cpuinit __cpu_up(unsigned int cpu) | 353 | int __cpuinit __cpu_up(unsigned int cpu) |
362 | { | 354 | { |
363 | int c; | 355 | int c; |
364 | 356 | ||
365 | secondary_ti = current_set[cpu]; | 357 | secondary_ti = current_set[cpu]; |
366 | if (!cpu_enable(cpu)) | ||
367 | return 0; | ||
368 | 358 | ||
369 | if (smp_ops == NULL || | 359 | if (smp_ops == NULL || |
370 | (smp_ops->cpu_bootable && !smp_ops->cpu_bootable(cpu))) | 360 | (smp_ops->cpu_bootable && !smp_ops->cpu_bootable(cpu))) |
diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index c95215f4f8b6..ebd2b7e037f0 100644 --- a/arch/powerpc/platforms/powermac/smp.c +++ b/arch/powerpc/platforms/powermac/smp.c | |||
@@ -923,8 +923,6 @@ struct smp_ops_t core99_smp_ops = { | |||
923 | # if defined(CONFIG_PPC64) | 923 | # if defined(CONFIG_PPC64) |
924 | .cpu_disable = generic_cpu_disable, | 924 | .cpu_disable = generic_cpu_disable, |
925 | .cpu_die = generic_cpu_die, | 925 | .cpu_die = generic_cpu_die, |
926 | /* intentionally do *NOT* assign cpu_enable, | ||
927 | * the generic code will use kick_cpu then! */ | ||
928 | # endif | 926 | # endif |
929 | #endif | 927 | #endif |
930 | }; | 928 | }; |