ARM: EXYNOS: Pass wakeup mask parameter to function for cpuidle
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 May 2014 21:52:59 +0000 (06:52 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sun, 25 May 2014 20:21:07 +0000 (05:21 +0900)
Pass the wakeup mask to 'exynos_set_wakeupmask' as this function could
be used for different idle states with different mask.

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>
arch/arm/mach-exynos/cpuidle.c

index bf1bf87..717dbf2 100644 (file)
 #define S5P_CHECK_AFTR         0xFCBA0D10
 
 /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */
-static void exynos_set_wakeupmask(void)
+static void exynos_set_wakeupmask(long mask)
 {
-       __raw_writel(0x0000ff3e, S5P_WAKEUP_MASK);
+       __raw_writel(mask, S5P_WAKEUP_MASK);
 }
 
 static int idle_finisher(unsigned long flags)
 {
-       exynos_set_wakeupmask();
+       exynos_set_wakeupmask(0x0000ff3e);
 
        __raw_writel(virt_to_phys(s3c_cpu_resume), REG_DIRECTGO_ADDR);
        __raw_writel(S5P_CHECK_AFTR, REG_DIRECTGO_FLAG);