mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-02 17:16:45 +00:00
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>
This commit is contained in:
parent
70ecb842ba
commit
712bb69e89
@ -52,13 +52,17 @@ static void exynos_cpu_set_boot_vector(long flags)
|
|||||||
__raw_writel(flags, REG_DIRECTGO_FLAG);
|
__raw_writel(flags, REG_DIRECTGO_FLAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int idle_finisher(unsigned long flags)
|
static void exynos_enter_aftr(void)
|
||||||
{
|
{
|
||||||
exynos_set_wakeupmask(0x0000ff3e);
|
exynos_set_wakeupmask(0x0000ff3e);
|
||||||
exynos_cpu_set_boot_vector(S5P_CHECK_AFTR);
|
exynos_cpu_set_boot_vector(S5P_CHECK_AFTR);
|
||||||
/* Set value of power down register for aftr mode */
|
/* Set value of power down register for aftr mode */
|
||||||
exynos_sys_powerdown_conf(SYS_AFTR);
|
exynos_sys_powerdown_conf(SYS_AFTR);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int idle_finisher(unsigned long flags)
|
||||||
|
{
|
||||||
|
exynos_enter_aftr();
|
||||||
cpu_do_idle();
|
cpu_do_idle();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user