]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] S3C: Rename sleep.S functions to be non-cpu specific
authorBen Dooks <ben-linux@fluff.org>
Fri, 12 Dec 2008 00:24:19 +0000 (00:24 +0000)
committerBen Dooks <ben-linux@fluff.org>
Sun, 8 Mar 2009 12:37:05 +0000 (12:37 +0000)
Rename s3c2410_cpu_resume to s3c_cpu_resume and s3c2410_cpu_save to
s3c_cpu_save to remove the CPU specific naming of these functions
which are now in the generic PM code.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/pm.c
arch/arm/mach-s3c2412/mach-jive.c
arch/arm/plat-s3c/include/plat/pm.h
arch/arm/plat-s3c/pm.c
arch/arm/plat-s3c24xx/sleep.S

index 72f96869aa94b7b49f699a4a513ab85f10d378b1..87fc481d92d4949f0a22a0f10d49a8f1051c2b36 100644 (file)
@@ -41,7 +41,7 @@ static void s3c2410_pm_prepare(void)
 {
        /* ensure at least GSTATUS3 has the resume address */
 
-       __raw_writel(virt_to_phys(s3c2410_cpu_resume), S3C2410_GSTATUS3);
+       __raw_writel(virt_to_phys(s3c_cpu_resume), S3C2410_GSTATUS3);
 
        S3C_PMDBG("GSTATUS3 0x%08x\n", __raw_readl(S3C2410_GSTATUS3));
        S3C_PMDBG("GSTATUS4 0x%08x\n", __raw_readl(S3C2410_GSTATUS4));
index 50d8054292c2a575eafe4e5347b83a3dda75bb89..72c266aee1410ab73ab085b65c1dbec1c00919aa 100644 (file)
@@ -494,7 +494,7 @@ static int jive_pm_suspend(struct sys_device *sd, pm_message_t state)
         * correct address to resume from. */
 
        __raw_writel(0x2BED, S3C2412_INFORM0);
-       __raw_writel(virt_to_phys(s3c2410_cpu_resume), S3C2412_INFORM1);
+       __raw_writel(virt_to_phys(s3c_cpu_resume), S3C2412_INFORM1);
 
        return 0;
 }
index a6104c8055fffdd05ddfa7191810b430ab778b19..f121a5ac742011c2058cc59fa6fe59c8ff570884 100644 (file)
@@ -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;
 
index e82ec628ced10371a3206ee487da7f5f91369393..e320b0ff385225cafacb4a8786163fb26c832e61 100644 (file)
@@ -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();
        }
 
index 7c1955ff31711ca5af4f8b268ba2b1a7dbc30103..ecb830be67d6d2520938c9d635cd20dc40672010 100644 (file)
@@ -41,7 +41,7 @@
 
        .text
 
-       /* s3c2410_cpu_save
+       /* s3c_cpu_save
         *
         * save enough of the CPU state to allow us to re-start
         * pm.c code. as we store items like the sp/lr, we will
@@ -59,7 +59,7 @@
         *           1 => resumed from sleep
        */
 
-ENTRY(s3c2410_cpu_save)
+ENTRY(s3c_cpu_save)
        stmfd   sp!, { r4 - r12, lr }
 
        @@ store co-processor registers
@@ -99,12 +99,12 @@ s3c_sleep_save_phys:
 
        /* sleep magic, to allow the bootloader to check for an valid
         * image to resume to. Must be the first word before the
-        * s3c2410_cpu_resume entry.
+        * s3c_cpu_resume entry.
        */
 
        .word   0x2bedf00d
 
-       /* s3c2410_cpu_resume
+       /* s3c_cpu_resume
         *
         * resume code entry for bootloader to call
         *
@@ -113,7 +113,7 @@ s3c_sleep_save_phys:
         * must not write to the code segment (code is read-only)
        */
 
-ENTRY(s3c2410_cpu_resume)
+ENTRY(s3c_cpu_resume)
        mov     r0, #PSR_I_BIT | PSR_F_BIT | SVC_MODE
        msr     cpsr_c, r0