drivers: cpuidle: implement OF based idle states infrastructure
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 14 Feb 2014 14:28:39 +0000 (14:28 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 29 May 2014 20:42:57 +0000 (21:42 +0100)
commit830b8519a41c5b13b1787ef94f31ad1d3507ec73
treecf6e52b5d6b5265c9d8a2016d676808ae54a51f9
parent8b343c860c2eb637c24ca77dec244d1f1a7560a6
drivers: cpuidle: implement OF based idle states infrastructure

On most common ARM systems, the low-power states a CPU can be put into are
not discoverable in HW and require device tree bindings to describe
the respective power domains, power down protocol and idle states parameters.

In order to enable DT based idle states and configure idle drivers, this
patch implements the bulk infrastructure required to parse the device tree
idle states bindings and initialize the corresponding CPUidle driver states
data.

Code that initializes idle states checks the CPU idle driver cpumask so
that multiple CPU idle drivers can be initialized through it in the
kernel. The CPU idle driver cpumask defines which idle states should be
considered valid for the driver, ie idle states that are valid on a set
of cpus the idle driver manages.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
drivers/cpuidle/Kconfig
drivers/cpuidle/Kconfig
drivers/cpuidle/Makefile
drivers/cpuidle/of_idle_states.c [new file with mode: 0644]
drivers/cpuidle/of_idle_states.h [new file with mode: 0644]