summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-11-28 17:07:37 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-09 20:02:39 +0100
commit7f3de1adb377960bc061b1d7ee477527d499d2bd (patch)
tree4b7a1230f381e93cce3a8af19d6fb4230398140b /arch/riscv/kernel
parentriscv: try to allocate crashkern region from 32bit addressible memory (diff)
downloadlinux-7f3de1adb377960bc061b1d7ee477527d499d2bd.tar.xz
linux-7f3de1adb377960bc061b1d7ee477527d499d2bd.zip
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: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/cpu-hotplug.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index df84e0c13db1..be7f05b542bb 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -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();