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)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 29 May 2014 16:55:11 +0000 (17:55 +0100)
commit12e3632c1ff18e8174c5bc414dc07534569fa517
tree61c96545aa9cec6ca9745fe2ad98b54ce33e6425
parentc7208164e66f63e3ec1759b98087849286410741
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>
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]