ARM: 8421/1: smp: Collapse arch_cpu_idle_dead() into cpu_die()
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 24 Aug 2015 20:49:30 +0000 (21:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Aug 2015 17:19:19 +0000 (18:19 +0100)
The only caller of cpu_die() on ARM is arch_cpu_idle_dead(), so
let's simplify the code by renaming cpu_die() to
arch_cpu_idle_dead(). While were here, drop the __ref annotation
because __cpuinit is gone nowadays.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/smp.h
arch/arm/kernel/process.c
arch/arm/kernel/smp.c

index 318ce89eeff7d040743a8de0715ab50b1cf9b55f..ef356659b4f43e6125443e7edd67aa1706bc8d2e 100644 (file)
@@ -74,7 +74,6 @@ extern void secondary_startup_arm(void);
 extern int __cpu_disable(void);
 
 extern void __cpu_die(unsigned int cpu);
-extern void cpu_die(void);
 
 extern void arch_send_call_function_single_ipi(int cpu);
 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
index f192a2a4171935720cfc702953703c78078579cc..358984b7f249ee1951db8ee6487314e495930c21 100644 (file)
@@ -91,13 +91,6 @@ void arch_cpu_idle_exit(void)
        ledtrig_cpu(CPU_LED_IDLE_END);
 }
 
-#ifdef CONFIG_HOTPLUG_CPU
-void arch_cpu_idle_dead(void)
-{
-       cpu_die();
-}
-#endif
-
 void __show_regs(struct pt_regs *regs)
 {
        unsigned long flags;
index 3cd846f48eafeb69e32a22e89cce6eb7957c0c09..0aad7cdf2e58b190502eaaba9cc31447cc15c2a8 100644 (file)
@@ -266,7 +266,7 @@ void __cpu_die(unsigned int cpu)
  * of the other hotplug-cpu capable cores, so presumably coming
  * out of idle fixes this.
  */
-void __ref cpu_die(void)
+void arch_cpu_idle_dead(void)
 {
        unsigned int cpu = smp_processor_id();