Unverified Commit 7f3de1ad authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt
Browse files

riscv: remove cpu_stop()



Except arch_cpu_idle_dead(), no users of this function. So remove
cpu_stop() and fold its code into arch_cpu_idle_dead().

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent decf89f8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -63,8 +63,6 @@ asmlinkage void smp_callin(void);
#if defined CONFIG_HOTPLUG_CPU
int __cpu_disable(void);
void __cpu_die(unsigned int cpu);
void cpu_stop(void);
#else
#endif /* CONFIG_HOTPLUG_CPU */

#else
+1 −7
Original line number Diff line number Diff line
@@ -14,12 +14,6 @@
#include <asm/cpu_ops.h>
#include <asm/sbi.h>

void cpu_stop(void);
void arch_cpu_idle_dead(void)
{
	cpu_stop();
}

bool cpu_has_hotplug(unsigned int cpu)
{
	if (cpu_ops[cpu]->cpu_stop)
@@ -75,7 +69,7 @@ void __cpu_die(unsigned int cpu)
/*
 * Called from the idle thread for the CPU which has been shutdown.
 */
void cpu_stop(void)
void arch_cpu_idle_dead(void)
{
	idle_task_exit();