[PATCH 2/6] ARM: pm: add generic CPU suspend/resume support

Colin Cross ccross at google.com
Mon Feb 14 20:21:07 EST 2011


On Fri, Feb 11, 2011 at 8:17 AM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> This adds core support for saving and restoring CPU coprocessor
> registers for suspend/resume support.  This contains support for suspend
> with ARM920, ARM926, SA11x0, PXA25x, PXA27x, PXA3xx, V6 and V7 CPUs.

I would like to use cpu_suspend in a case where the L2 is still
enabled.  When cpu_resume is called, the MMU and cache bits in SCTLR
are disabled, so the reads skip the L2 cache, and the data that was
saved (sleep_save_sp and *sleep_save_sp) is not read back.

Is it possible to call the outer_cache functions from cpu_suspend to
flush sleep_save_sp and the saved data?



More information about the linux-arm-kernel mailing list