[PATCH v2 10/10] arm: zynq: Add cpuidle support
Arnd Bergmann
arnd at arndb.de
Tue Mar 26 17:46:58 EDT 2013
On Tuesday 26 March 2013, Michal Simek wrote:
> Add support for cpuidle.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
> v2: Fix file header
> ---
> arch/arm/mach-zynq/Makefile | 1 +
> arch/arm/mach-zynq/cpuidle.c | 133 ++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 134 insertions(+)
> create mode 100644 arch/arm/mach-zynq/cpuidle.c
Can you move that file to drivers/cpuidle instead?
>+/* Initialize CPU idle by registering the idle states */
>+static int xilinx_init_cpuidle(void)
>+{
>+ unsigned int cpu;
>+ struct cpuidle_device *device;
>+ int ret;
>+
>+ ret = cpuidle_register_driver(&xilinx_idle_driver);
>+ if (ret) {
>+ pr_err("Registering Xilinx CpuIdle Driver failed.\n");
>+ return ret;
>+ }
I think you have to check that you actually run on a Zynq system before
registering the driver.
Arnd
More information about the linux-arm-kernel
mailing list