]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] S3C: Tidy sleep code path to fix call flow
authorBen Dooks <ben-linux@fluff.org>
Tue, 10 Mar 2009 11:48:07 +0000 (11:48 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 10 Mar 2009 11:48:07 +0000 (11:48 +0000)
commitfff94cd9f5527bbba13aa5ea5719d16531ca8e65
treebddf3ef686410872d8da882688229688710d574b
parentaa8aba6944203a17a7e941b42d8415153c649660
[ARM] S3C: Tidy sleep code path to fix call flow

As noted by Russell King, the sleep code path is not
elegant and makes use of leaving items on the stack
between calls.

Change the code that does the following:

        if (s3c_cpu_save(regs_save) == 0) {
                flush_cache_all();
                S3C_PMDBG("preparing to sleep\n");
                pm_cpu_sleep();
        }

to simply call s3c_cpu_save, and let that do the
necessary calls to quiesce and sleep the system.

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