提交 623f2266 编写于 作者: D Daniel Lezcano 提交者: Kukjin Kim

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: NDaniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: NTomasz Figa <t.figa@samsung.com>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 58afbc61
......@@ -41,14 +41,14 @@
#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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册