]> Git Repo - linux.git/commitdiff
RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine
authorAnup Patel <[email protected]>
Thu, 10 Feb 2022 05:49:47 +0000 (11:19 +0530)
committerPalmer Dabbelt <[email protected]>
Thu, 10 Mar 2022 17:29:59 +0000 (09:29 -0800)
We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test
SBI HSM Supend on QEMU.

Signed-off-by: Anup Patel <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/Kconfig.socs
arch/riscv/configs/defconfig
arch/riscv/configs/rv32_defconfig

index 6ec44a22278a419132ece3b12436010a52b7d1b3..f4097a815201dc7f978d8d16bfa50007f40fc153 100644 (file)
@@ -36,6 +36,9 @@ config SOC_VIRT
        select GOLDFISH
        select RTC_DRV_GOLDFISH if RTC_CLASS
        select SIFIVE_PLIC
+       select PM_GENERIC_DOMAINS if PM
+       select PM_GENERIC_DOMAINS_OF if PM && OF
+       select RISCV_SBI_CPUIDLE if CPU_IDLE
        help
          This enables support for QEMU Virt Machine.
 
index a5e0482a49692a722d5e5f5bbe80e2135e7eb525..b8c882b70b02ff97d4c921eaa1b748d40de43a26 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_SOC_SIFIVE=y
 CONFIG_SOC_VIRT=y
 CONFIG_SMP=y
 CONFIG_HOTPLUG_CPU=y
+CONFIG_PM=y
 CONFIG_CPU_IDLE=y
 CONFIG_VIRTUALIZATION=y
 CONFIG_KVM=m
index d1b87db54d68b0b1fdfec9edf985569765230d1f..6f9a7c89bff934cc43d932f93dfcc952e3990e5b 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_SOC_VIRT=y
 CONFIG_ARCH_RV32I=y
 CONFIG_SMP=y
 CONFIG_HOTPLUG_CPU=y
+CONFIG_PM=y
 CONFIG_CPU_IDLE=y
 CONFIG_VIRTUALIZATION=y
 CONFIG_KVM=m
This page took 0.050416 seconds and 4 git commands to generate.