Re: [PATCH 08/17] riscv: improve the default power off implementation

2019-07-01 Thread Atish Patra
On Mon, 2019-06-24 at 07:43 +0200, Christoph Hellwig wrote: > Only call the SBI code if we are not running in M mode, and if we > didn't > do the SBI call, or it didn't succeed call wfi in a loop to at least > save some power. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/reset.

[PATCH 08/17] riscv: improve the default power off implementation

2019-06-23 Thread Christoph Hellwig
Only call the SBI code if we are not running in M mode, and if we didn't do the SBI call, or it didn't succeed call wfi in a loop to at least save some power. Signed-off-by: Christoph Hellwig --- arch/riscv/kernel/reset.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ar