Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e9fec0e authored by Amit Daniel Kachhap's avatar Amit Daniel Kachhap Committed by Kukjin Kim
Browse files

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: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: default avatarAmit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 08e594fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -199,6 +199,9 @@ static int __init exynos4_init_cpuidle(void)
	if (soc_is_exynos5250())
	if (soc_is_exynos5250())
		exynos5_core_down_clk();
		exynos5_core_down_clk();


	if (soc_is_exynos5440())
		exynos4_idle_driver.state_count = 1;

	ret = cpuidle_register_driver(&exynos4_idle_driver);
	ret = cpuidle_register_driver(&exynos4_idle_driver);
	if (ret) {
	if (ret) {
		printk(KERN_ERR "CPUidle failed to register driver\n");
		printk(KERN_ERR "CPUidle failed to register driver\n");