]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: psci: Simplify OF parsing of CPU idle state nodes
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2019 10:01:48 +0000 (12:01 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 Jan 2020 15:50:15 +0000 (16:50 +0100)
commite02da5aee8e4cffbcc7c5e62284d1267e541f1de
treec72f83d951f8cf428e2342a52dc6188959b1c07b
parent8d841915a0cbe3736c4e42edbd0f51454417f753
cpuidle: psci: Simplify OF parsing of CPU idle state nodes

Iterating through the idle state nodes in DT, to find out the number of
states that needs to be allocated is unnecessary, as it has already been
done from dt_init_idle_driver(). Therefore, drop the iteration and use the
number we already have at hand.

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>
drivers/cpuidle/cpuidle-psci.c