powerpc/smp: Fold cpu_die() into its only caller
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:56:33 +0000 (11:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Sep 2020 09:59:43 +0000 (19:59 +1000)
Avoid the eternal confusion between cpu_die() and __cpu_die() by
removing the former, folding it into its only caller.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819015634.1974478-2-mpe@ellerman.id.au
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c

index 041f0b9..0bf80c5 100644 (file)
@@ -30,7 +30,6 @@ extern int spinning_secondaries;
 extern u32 *cpu_to_phys_id;
 extern bool coregroup_enabled;
 
-extern void cpu_die(void);
 extern int cpu_to_chip_id(int cpu);
 
 #ifdef CONFIG_SMP
index 24b0476..4ae767c 100644 (file)
@@ -1492,11 +1492,7 @@ void __cpu_die(unsigned int cpu)
 void arch_cpu_idle_dead(void)
 {
        sched_preempt_enable_no_resched();
-       cpu_die();
-}
 
-void cpu_die(void)
-{
        /*
         * Disable on the down path. This will be re-enabled by
         * start_secondary() via start_secondary_resume() below