summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-04-11 13:52:09 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2014-04-15 06:39:19 -0700
commitb06092716c445d40e7e50a9f9de45442a223d50c (patch)
treeac4fa1ea32dc5a40bfd6ec644457e21726a9f13c /arch
parentd3e9d8f604f036d32d1511430f14705fb5cdef30 (diff)
downloadlinux-3.10-b06092716c445d40e7e50a9f9de45442a223d50c.tar.gz
linux-3.10-b06092716c445d40e7e50a9f9de45442a223d50c.tar.bz2
linux-3.10-b06092716c445d40e7e50a9f9de45442a223d50c.zip
cpuidle:AFTR: Enable STANDBY_WFI0 and STANDBY_WFE0 for cpu0 in AFTR mode
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/cpuidle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c
index 11c3db7b165..ca26770683f 100644
--- a/arch/arm/mach-exynos/cpuidle.c
+++ b/arch/arm/mach-exynos/cpuidle.c
@@ -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 */