Skip to content

Commit c1f048a

Browse files
Song Shuaipalmer-dabbelt
authored andcommitted
riscv: Enable ARCH_SUSPEND_POSSIBLE for s2idle
With this configuration opened, the basic platform-independent s2idle is provided by the sole "s2idle" string in `/sys/power/mem_sleep`. At the end of s2idle, harts will hit the `wfi` instruction or enter the SUSPENDED state through the sbi_cpuidle driver. The interrupt of possible wakeup devices will be kept to wake the system up. And platform-specific sleep states can be provided by future ACPI and SBI SUSP extension support. Signed-off-by: Song Shuai <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 54cdede commit c1f048a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/riscv/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,9 @@ config ARCH_HIBERNATION_POSSIBLE
873873
config ARCH_HIBERNATION_HEADER
874874
def_bool HIBERNATION
875875

876+
config ARCH_SUSPEND_POSSIBLE
877+
def_bool y
878+
876879
endmenu # "Power management options"
877880

878881
menu "CPU Power Management"

0 commit comments

Comments
 (0)