summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/reset.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-10-28 13:10:35 +0100
committerPaul Walmsley <paul.walmsley@sifive.com>2019-11-13 13:22:52 -0800
commit3320648ecc38190caad298fbbce949f591a10253 (patch)
tree88549192676c8811bc263a32a88c9184597ad003 /arch/riscv/kernel/reset.c
parent3b03ac6bbd6ef6264d533791ac448e20bfb1858d (diff)
downloadlinux-next-3320648ecc38190caad298fbbce949f591a10253.tar.gz
riscv: cleanup the default power off implementation
Move the sbi poweroff to a separate function and file that is only compiled if CONFIG_SBI is set. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Atish Patra <atish.patra@wdc.com> [paul.walmsley@sifive.com: split the WFI fix into a separate patch] Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/reset.c')
-rw-r--r--arch/riscv/kernel/reset.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/kernel/reset.c b/arch/riscv/kernel/reset.c
index 485be426d9b1..ee5878d968cc 100644
--- a/arch/riscv/kernel/reset.c
+++ b/arch/riscv/kernel/reset.c
@@ -5,11 +5,9 @@
#include <linux/reboot.h>
#include <linux/pm.h>
-#include <asm/sbi.h>
static void default_power_off(void)
{
- sbi_shutdown();
while (1)
wait_for_interrupt();
}