From: Daniel Lezcano Date: Thu, 8 May 2014 21:52:59 +0000 (+0900) Subject: ARM: EXYNOS: Encapsulate the AFTR code into a function X-Git-Tag: next-20140530~113^2~7^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=712bb69e89c575b793954eb641958f992f4b5f78;p=karo-tx-linux.git ARM: EXYNOS: Encapsulate the AFTR code into a function Let's encapsulate the AFTR state specific call into a single function. Signed-off-by: Daniel Lezcano Reviewed-by: Tomasz Figa Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 862d6beae4af..d8b80c053e42 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -52,13 +52,17 @@ static void exynos_cpu_set_boot_vector(long flags) __raw_writel(flags, REG_DIRECTGO_FLAG); } -static int idle_finisher(unsigned long flags) +static void exynos_enter_aftr(void) { exynos_set_wakeupmask(0x0000ff3e); exynos_cpu_set_boot_vector(S5P_CHECK_AFTR); /* Set value of power down register for aftr mode */ exynos_sys_powerdown_conf(SYS_AFTR); +} +static int idle_finisher(unsigned long flags) +{ + exynos_enter_aftr(); cpu_do_idle(); return 1;