summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/suspend.h
AgeCommit message (Collapse)AuthorFilesLines
2022-03-10RISC-V: Add arch functions for non-retentive suspend entry/exitAnup Patel1-0/+36
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>