summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-10-10 12:01:48 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-01-02 16:50:19 +0100
commitf08cfbfa4fb1b5cf15d9f3d3f8ef2280236f4a12 (patch)
tree019c254dd79ee5a7fff8e3d0fdb4e727a2b5957e /drivers/cpuidle
parent1595e4b09b2e7f7fc83369ecc3066505b6c7359b (diff)
downloadlinux-f08cfbfa4fb1b5cf15d9f3d3f8ef2280236f4a12.tar.bz2
cpuidle: psci: Support hierarchical CPU idle states
Currently CPU's idle states are represented using the flattened model. Let's add support for the hierarchical layout, via converting to use of_get_cpu_state_node(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle-psci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c
index 761359be50f2..830995b8a56f 100644
--- a/drivers/cpuidle/cpuidle-psci.c
+++ b/drivers/cpuidle/cpuidle-psci.c
@@ -86,8 +86,7 @@ static int __init psci_dt_cpu_init_idle(struct device_node *cpu_node,
return -ENOMEM;
for (i = 1; i < state_count; i++) {
- state_node = of_parse_phandle(cpu_node, "cpu-idle-states",
- i - 1);
+ state_node = of_get_cpu_state_node(cpu_node, i - 1);
if (!state_node)
break;