RISC-V: Add arch functions for non-retentive suspend entry/exit
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: NAnup Patel <anup.patel@wdc.com> Signed-off-by: NAnup Patel <apatel@ventanamicro.com> Reviewed-by: NGuo Ren <guoren@kernel.org> Signed-off-by: NPalmer Dabbelt <palmer@rivosinc.com>
Showing
arch/riscv/include/asm/suspend.h
0 → 100644
arch/riscv/kernel/suspend.c
0 → 100644
arch/riscv/kernel/suspend_entry.S
0 → 100644
想要评论请 注册 或 登录