aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s3c')
-rw-r--r--arch/arm/plat-s3c/include/plat/pm.h5
-rw-r--r--arch/arm/plat-s3c/pm.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/plat-s3c/include/plat/pm.h b/arch/arm/plat-s3c/include/plat/pm.h
index a6104c8055f..f121a5ac742 100644
--- a/arch/arm/plat-s3c/include/plat/pm.h
+++ b/arch/arm/plat-s3c/include/plat/pm.h
@@ -46,9 +46,10 @@ extern unsigned long s3c_pm_flags;
/* from sleep.S */
-extern int s3c2410_cpu_save(unsigned long *saveblk);
+extern int s3c_cpu_save(unsigned long *saveblk);
+extern void s3c_cpu_resume(void);
+
extern void s3c2410_cpu_suspend(void);
-extern void s3c2410_cpu_resume(void);
extern unsigned long s3c_sleep_save_phys;
diff --git a/arch/arm/plat-s3c/pm.c b/arch/arm/plat-s3c/pm.c
index e82ec628ced..e320b0ff385 100644
--- a/arch/arm/plat-s3c/pm.c
+++ b/arch/arm/plat-s3c/pm.c
@@ -280,8 +280,9 @@ static int s3c_pm_enter(suspend_state_t state)
* we resume as it saves its own register state, so use the return
* code to differentiate return from save and return from sleep */
- if (s3c2410_cpu_save(regs_save) == 0) {
+ if (s3c_cpu_save(regs_save) == 0) {
flush_cache_all();
+ S3C_PMDBG("preparing to sleep\n");
pm_cpu_sleep();
}