aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-08-20 15:49:54 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-08-27 10:44:13 -0400
commit084bb5bc00c19ec32b45f44d11ba6a0ca2514ec3 (patch)
tree4553a283ad4b6e4c615197934227812aea3e2c5f /arch/arm/kernel/smp.c
parent31e1a602b97dd7f68adb44ebac89caa7f1a25b1c (diff)
ARM: 8131/1: arm/smp: Absorb boot_secondary()
After becoming a mandatory function, boot_secondary() is no longer used outside arch/arm/kernel/smp.c. Hence remove its public prototype, and, as suggested by Arnd, let it be absorbed by its single caller. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r--arch/arm/kernel/smp.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 9388a3d479e1..d19aea4385d9 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -95,6 +95,9 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)
95{ 95{
96 int ret; 96 int ret;
97 97
98 if (!smp_ops.smp_boot_secondary)
99 return -ENOSYS;
100
98 /* 101 /*
99 * We need to tell the secondary core where to find 102 * We need to tell the secondary core where to find
100 * its stack and the page tables. 103 * its stack and the page tables.
@@ -113,7 +116,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)
113 /* 116 /*
114 * Now bring the CPU into our world. 117 * Now bring the CPU into our world.
115 */ 118 */
116 ret = boot_secondary(cpu, idle); 119 ret = smp_ops.smp_boot_secondary(cpu, idle);
117 if (ret == 0) { 120 if (ret == 0) {
118 /* 121 /*
119 * CPU was successfully started, wait for it 122 * CPU was successfully started, wait for it
@@ -142,13 +145,6 @@ void __init smp_init_cpus(void)
142 smp_ops.smp_init_cpus(); 145 smp_ops.smp_init_cpus();
143} 146}
144 147
145int boot_secondary(unsigned int cpu, struct task_struct *idle)
146{
147 if (smp_ops.smp_boot_secondary)
148 return smp_ops.smp_boot_secondary(cpu, idle);
149 return -ENOSYS;
150}
151
152int platform_can_cpu_hotplug(void) 148int platform_can_cpu_hotplug(void)
153{ 149{
154#ifdef CONFIG_HOTPLUG_CPU 150#ifdef CONFIG_HOTPLUG_CPU