Commit f08cfbfa4fb1b5cf15d9f3d3f8ef2280236f4a12

Authored by Ulf Hansson
1 parent 1595e4b09b

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/cpuidle/cpuidle-psci.c
... ... @@ -86,8 +86,7 @@
86 86 return -ENOMEM;
87 87  
88 88 for (i = 1; i < state_count; i++) {
89   - state_node = of_parse_phandle(cpu_node, "cpu-idle-states",
90   - i - 1);
  89 + state_node = of_get_cpu_state_node(cpu_node, i - 1);
91 90 if (!state_node)
92 91 break;
93 92