cpuidle:AFTR: Enable STANDBY_WFI0 and STANDBY_WFE0 for cpu0 in AFTR mode
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 11 Apr 2014 11:52:09 +0000 (13:52 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:28:30 +0000 (07:28 +0200)
Enabling of CORE0 idle state is based on the state of STANDBYWFI/STANDBYWFE
internal signal.

Change-Id: I43675fa312ce879f3741644057991bdb33f6cd55
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
arch/arm/mach-exynos/cpuidle.c

index 11c3db7..ca26770 100644 (file)
@@ -107,6 +107,10 @@ static int exynos4_enter_core0_aftr(struct cpuidle_device *dev,
 {
        unsigned long tmp;
 
+       if (soc_is_exynos4412())
+               __raw_writel(S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFE0,
+                            S5P_CENTRAL_SEQ_OPTION);
+
        exynos4_set_wakeupmask();
 
        /* Set value of power down register for aftr mode */