summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-09-19 10:04:18 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 10:25:32 +0100
commitcdf3f8e0387e81477dee72ecb2e3be28feac05c8 (patch)
tree6a2dd8f4b3afa374fce1e56d1d12446c2595f9c4 /arch/arm/mach-s3c2410
parent50dedf168c1afd23cbc6c4fd8429c9e931b4e813 (diff)
downloadop-kernel-dev-cdf3f8e0387e81477dee72ecb2e3be28feac05c8.zip
op-kernel-dev-cdf3f8e0387e81477dee72ecb2e3be28feac05c8.tar.gz
[ARM] 3836/1: S3C24XX: Clear both EINT and INT status before sleep
Clear both the EINT and INT status before going to sleep, otherwise we may end up being woken by something that was not set in our wakeup map. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r--arch/arm/mach-s3c2410/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c
index 9402583..b49a0b3 100644
--- a/arch/arm/mach-s3c2410/pm.c
+++ b/arch/arm/mach-s3c2410/pm.c
@@ -557,6 +557,8 @@ static int s3c2410_pm_enter(suspend_state_t state)
/* ack any outstanding external interrupts before we go to sleep */
__raw_writel(__raw_readl(S3C2410_EINTPEND), S3C2410_EINTPEND);
+ __raw_writel(__raw_readl(S3C2410_INTPND), S3C2410_INTPND);
+ __raw_writel(__raw_readl(S3C2410_SRCPND), S3C2410_SRCPND);
/* call cpu specific preperation */
OpenPOWER on IntegriCloud