sh: Add MMU and Cache handling sleep mode code
authorMagnus Damm <damm@opensource.se>
Fri, 30 Oct 2009 04:24:23 +0000 (04:24 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 30 Oct 2009 05:37:56 +0000 (14:37 +0900)
commit99675a7a45ed3cec54d6e1d11f13bcaacaf0909b
tree7a23202a0071dc26015741d296270449e76922a6
parent02bf89347c7d6a6aeae64f02536dac038c402fce
sh: Add MMU and Cache handling sleep mode code

Add MMU and cache handling functionality to the SuperH Mobile
sleep code. The MMU and cache registers are saved and restored.
The MMU is disabled and the cache is flushed and disabled before
entering sleep modes if the SUSP_SH_MMU flag is set. This flag
should be set in the case of R-standby and most likely for future
U-standby support as well.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/suspend.h
arch/sh/kernel/asm-offsets.c
arch/sh/kernel/cpu/shmobile/pm.c
arch/sh/kernel/cpu/shmobile/sleep.S