ARM: EXYNOS: Skip C1 cpuidle state for exynos5440
authorAmit Daniel Kachhap <amit.daniel@samsung.com>
Tue, 27 Aug 2013 15:48:24 +0000 (00:48 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 27 Aug 2013 15:51:21 +0000 (00:51 +0900)
This patch skips the deep C1(AFTR -Arm off top running) state for
exynos5440 SoC as this soc does not support this state. The cpu's
only allows the basic C0 state.
The C1 state is filtered by re-initialising the driver state_count
value to 1.

Suggested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/cpuidle.c

index 17a18ff..ec61b40 100644 (file)
@@ -199,6 +199,9 @@ static int __init exynos4_init_cpuidle(void)
        if (soc_is_exynos5250())
                exynos5_core_down_clk();
 
+       if (soc_is_exynos5440())
+               exynos4_idle_driver.state_count = 1;
+
        ret = cpuidle_register_driver(&exynos4_idle_driver);
        if (ret) {
                printk(KERN_ERR "CPUidle failed to register driver\n");