summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/Kconfig
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2022-02-10 08:49:44 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2022-03-10 20:29:44 +0300
commit9d976d6721dfb525b81ce981e1363c70c0975aab (patch)
tree2607ced4361d162f1c624c6b44e039ca9a8cd89f /drivers/cpuidle/Kconfig
parentb8200905e48891b4a3134b47f35c730347135eed (diff)
downloadlinux-9d976d6721dfb525b81ce981e1363c70c0975aab.tar.xz
cpuidle: Factor-out power domain related code from PSCI domain driver
The generic power domain related code in PSCI domain driver is largely independent of PSCI and can be shared with RISC-V SBI domain driver hence we factor-out this code into dt_idle_genpd.c and dt_idle_genpd.h. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/cpuidle/Kconfig')
-rw-r--r--drivers/cpuidle/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpuidle/Kconfig b/drivers/cpuidle/Kconfig
index c0aeedd66f02..f1afe7ab6b54 100644
--- a/drivers/cpuidle/Kconfig
+++ b/drivers/cpuidle/Kconfig
@@ -47,6 +47,10 @@ config CPU_IDLE_GOV_HALTPOLL
config DT_IDLE_STATES
bool
+config DT_IDLE_GENPD
+ depends on PM_GENERIC_DOMAINS_OF
+ bool
+
menu "ARM CPU Idle Drivers"
depends on ARM || ARM64
source "drivers/cpuidle/Kconfig.arm"