summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSong Shuai <songshuaishuai@tinylab.org>2023-05-29 18:15:24 +0800
committerHoegeun Kwon <hoegeun.kwon@samsung.com>2023-11-27 15:16:34 +0900
commit60a19eddc28c8806b24ef578d68c2c5aee66f40d (patch)
tree360f2e976ebb400aa681244d39aa09231f886ba5
parent5fcaa5eba5481847dc26d887302ee9e1b2978357 (diff)
downloadlinux-starfive-60a19eddc28c8806b24ef578d68c2c5aee66f40d.tar.gz
linux-starfive-60a19eddc28c8806b24ef578d68c2c5aee66f40d.tar.bz2
linux-starfive-60a19eddc28c8806b24ef578d68c2c5aee66f40d.zip
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 <songshuaishuai@tinylab.org> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20230529101524.322076-1-songshuaishuai@tinylab.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> [hoegeun.kwon: cherry-pick the commit c1f048a6bd7d from mainline] Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com> Change-Id: I535adff9152e6f20b9ad825b03cadfec6ac39684
-rw-r--r--arch/riscv/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index fbfae8d8f6b8..5fd350383dc9 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -715,6 +715,9 @@ config ARCH_HIBERNATION_POSSIBLE
config ARCH_HIBERNATION_HEADER
def_bool HIBERNATION
+config ARCH_SUSPEND_POSSIBLE
+ def_bool y
+
endmenu # "Power management options"
menu "CPU Power Management"