summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c/include
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-12-12 00:24:07 +0000
committerBen Dooks <ben-linux@fluff.org>2009-03-08 12:33:39 +0000
commit549c7e33aeb9bfe441ecf68639d2227bb90978e7 (patch)
treef5aa85c1c0a4f581273814cd5a62510d40e7117f /arch/arm/plat-s3c/include
parent6419711a164ba1304fa8fbb75ae9485455e04dcd (diff)
downloadop-kernel-dev-549c7e33aeb9bfe441ecf68639d2227bb90978e7.zip
op-kernel-dev-549c7e33aeb9bfe441ecf68639d2227bb90978e7.tar.gz
[ARM] S3C: Split the resume memory check code from pm.c
Split the optional memory check code out of the pm.c file as it is quite a big #ifdef block and as-such can be moved out and simply compiled when the configuration is set. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/include')
-rw-r--r--arch/arm/plat-s3c/include/plat/pm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/pm.h b/arch/arm/plat-s3c/include/plat/pm.h
index a152099..95c2612d 100644
--- a/arch/arm/plat-s3c/include/plat/pm.h
+++ b/arch/arm/plat-s3c/include/plat/pm.h
@@ -101,3 +101,15 @@ extern void s3c_pm_dbg(const char *msg, ...);
#else
#define S3C_PMDBG(fmt...) printk(KERN_DEBUG fmt)
#endif
+
+/* suspend memory checking */
+
+#ifdef CONFIG_S3C2410_PM_CHECK
+extern void s3c_pm_check_prepare(void);
+extern void s3c_pm_check_restore(void);
+extern void s3c_pm_check_store(void);
+#else
+#define s3c_pm_check_prepare() do { } while(0)
+#define s3c_pm_check_restore() do { } while(0)
+#define s3c_pm_check_store() do { } while(0)
+#endif
OpenPOWER on IntegriCloud