diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-05-08 17:52:59 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-05-25 16:21:07 -0400 |
commit | 623f22665c790f82a571653c01e949834490a55a (patch) | |
tree | 1a522c4209d109379736b54b7e281825b9fd0bab | |
parent | 58afbc61a33928a764460bfa4ea85c9dbe9d0a77 (diff) |
ARM: EXYNOS: Pass wakeup mask parameter to function for cpuidle
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>
-rw-r--r-- | arch/arm/mach-exynos/cpuidle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index bf1bf87af00e..717dbf28ede7 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c | |||
@@ -41,14 +41,14 @@ | |||
41 | #define S5P_CHECK_AFTR 0xFCBA0D10 | 41 | #define S5P_CHECK_AFTR 0xFCBA0D10 |
42 | 42 | ||
43 | /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */ | 43 | /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */ |
44 | static void exynos_set_wakeupmask(void) | 44 | static void exynos_set_wakeupmask(long mask) |
45 | { | 45 | { |
46 | __raw_writel(0x0000ff3e, S5P_WAKEUP_MASK); | 46 | __raw_writel(mask, S5P_WAKEUP_MASK); |
47 | } | 47 | } |
48 | 48 | ||
49 | static int idle_finisher(unsigned long flags) | 49 | static int idle_finisher(unsigned long flags) |
50 | { | 50 | { |
51 | exynos_set_wakeupmask(); | 51 | exynos_set_wakeupmask(0x0000ff3e); |
52 | 52 | ||
53 | __raw_writel(virt_to_phys(s3c_cpu_resume), REG_DIRECTGO_ADDR); | 53 | __raw_writel(virt_to_phys(s3c_cpu_resume), REG_DIRECTGO_ADDR); |
54 | __raw_writel(S5P_CHECK_AFTR, REG_DIRECTGO_FLAG); | 54 | __raw_writel(S5P_CHECK_AFTR, REG_DIRECTGO_FLAG); |