Skip to content

Commit

Permalink
ARM: EXYNOS: Register cpuidle device only on exynos4210 and 5250
Browse files Browse the repository at this point in the history
Currently, the exynos cpuidle driver works correctly only on exynos4210
and 5250. Trying to use it with just one CPU online on any other exynos
SoCs will lead to system failure, due to unsupported AFTR mode on other
SoCs. This patch fixes the problem by registering the driver only on
supported SoCs and letting others simply use default WFI mode until
support for them is added.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Tomasz Figa authored and kgene committed Jul 10, 2014
1 parent cacaeb8 commit bed7118
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/arm/mach-exynos/exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ static struct platform_device exynos_cpuidle = {

void __init exynos_cpuidle_init(void)
{
if (soc_is_exynos5440())
return;

platform_device_register(&exynos_cpuidle);
if (soc_is_exynos4210() || soc_is_exynos5250())
platform_device_register(&exynos_cpuidle);
}

void __init exynos_cpufreq_init(void)
Expand Down

0 comments on commit bed7118

Please sign in to comment.