riscv: cleanup the default power off implementation
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Oct 2019 12:10:35 +0000 (13:10 +0100)
committerPaul Walmsley <paul.walmsley@sifive.com>
Wed, 13 Nov 2019 21:22:52 +0000 (13:22 -0800)
commit3320648ecc38190caad298fbbce949f591a10253
tree88549192676c8811bc263a32a88c9184597ad003
parent3b03ac6bbd6ef6264d533791ac448e20bfb1858d
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>
arch/riscv/kernel/Makefile
arch/riscv/kernel/reset.c
arch/riscv/kernel/sbi.c [new file with mode: 0644]