+27
−0
arch/riscv/include/asm/suspend.h
0 → 100644
+36
−0
+0
−21
Loading
The hart registers and CSRs are not preserved in non-retentative suspend state so we provide arch specific helper functions which will save/restore hart context upon entry/exit to non-retentive suspend state. These helper functions can be used by cpuidle drivers for non-retentive suspend entry/exit. Signed-off-by:Anup Patel <anup.patel@wdc.com> Signed-off-by:
Anup Patel <apatel@ventanamicro.com> Reviewed-by:
Guo Ren <guoren@kernel.org> Signed-off-by:
Palmer Dabbelt <palmer@rivosinc.com>