summaryrefslogtreecommitdiffstats
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
commitdcef663d49e3beb09bc3cb436c997ce40aaf80fa (patch)
tree550268c1ce3e7c4c5c6ab06149a0e46778f8ff41 /arch/arm/mach-exynos
parent623f22665c790f82a571653c01e949834490a55a (diff)
downloadop-kernel-dev-dcef663d49e3beb09bc3cb436c997ce40aaf80fa.zip
op-kernel-dev-dcef663d49e3beb09bc3cb436c997ce40aaf80fa.tar.gz
ARM: EXYNOS: Encapsulate boot vector code into a function for cpuidle
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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c
index 717dbf2..4e46a12 100644
--- a/arch/arm/mach-exynos/cpuidle.c
+++ b/arch/arm/mach-exynos/cpuidle.c
@@ -46,13 +46,16 @@ static void exynos_set_wakeupmask(long mask)
__raw_writel(mask, S5P_WAKEUP_MASK);
}
+static void exynos_cpu_set_boot_vector(long flags)
+{
+ __raw_writel(virt_to_phys(exynos_cpu_resume), REG_DIRECTGO_ADDR);
+ __raw_writel(flags, REG_DIRECTGO_FLAG);
+}
+
static int idle_finisher(unsigned long flags)
{
exynos_set_wakeupmask(0x0000ff3e);
-
- __raw_writel(virt_to_phys(s3c_cpu_resume), REG_DIRECTGO_ADDR);
- __raw_writel(S5P_CHECK_AFTR, REG_DIRECTGO_FLAG);
-
+ exynos_cpu_set_boot_vector(S5P_CHECK_AFTR);
/* Set value of power down register for aftr mode */
exynos_sys_powerdown_conf(SYS_AFTR);
OpenPOWER on IntegriCloud