aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2013-08-27 11:48:24 -0400
committerKukjin Kim <kgene.kim@samsung.com>2013-08-27 11:51:21 -0400
commit1e9fec0e40deff9d18e4197b5f5f99f85f5d36a5 (patch)
tree2b44e5fa1bb058b0ae3c575121992b6eb48ef726
parent08e594fc120bdbee5b9a319686a84f94abc76492 (diff)
ARM: EXYNOS: Skip C1 cpuidle state for exynos5440
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>
-rw-r--r--arch/arm/mach-exynos/cpuidle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c
index 17a18ff3d71e..ec61b40ad95e 100644
--- a/arch/arm/mach-exynos/cpuidle.c
+++ b/arch/arm/mach-exynos/cpuidle.c
@@ -199,6 +199,9 @@ static int __init exynos4_init_cpuidle(void)
199 if (soc_is_exynos5250()) 199 if (soc_is_exynos5250())
200 exynos5_core_down_clk(); 200 exynos5_core_down_clk();
201 201
202 if (soc_is_exynos5440())
203 exynos4_idle_driver.state_count = 1;
204
202 ret = cpuidle_register_driver(&exynos4_idle_driver); 205 ret = cpuidle_register_driver(&exynos4_idle_driver);
203 if (ret) { 206 if (ret) {
204 printk(KERN_ERR "CPUidle failed to register driver\n"); 207 printk(KERN_ERR "CPUidle failed to register driver\n");