]> 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)
commit753d380d4b736612513a2320a915bc3281485dfb
treec72f83d951f8cf428e2342a52dc6188959b1c07b
parent03ddabe28ac94beb247087260d124ee7fe74b956
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