summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2014-05-09 06:52:59 +0900
committerKukjin Kim <kgene.kim@samsung.com>2014-05-26 05:21:08 +0900
commit712bb69e89c575b793954eb641958f992f4b5f78 (patch)
tree268d0b58a97b6974a92765c2446c20604851225a /arch/arm/mach-exynos
parent70ecb842ba19d205a1e5d6c3de5656e1cb986284 (diff)
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 <daniel.lezcano@linaro.org> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/cpuidle.c6
1 files changed, 5 insertions, 1 deletions
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;