riscv: enter WFI in default_power_off() if SBI does not shutdown
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 23:11:47 +0000 (16:11 -0700)
committerPaul Walmsley <paul.walmsley@sifive.com>
Tue, 5 Nov 2019 17:11:17 +0000 (09:11 -0800)
commit86fe639a1c1678d81fc4c82a39a5299df6deb944
tree6b90645ac94b8dbf8a2557dcc1321f39170bb437
parenta99d8080aaf358d5d23581244e5da23b35e340b9
riscv: enter WFI in default_power_off() if SBI does not shutdown

Provide a new default fallback power off that just sits in a wfi loop
to save some power.

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 apart from the
 nommu-related default_power_off() changes]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/kernel/reset.c