summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/shmobile/pm.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-02-25 11:03:24 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-02-26 15:29:26 +0900
commit41bfb7d7a6ce3d8dd83112e65f5d97feefde818a (patch)
treefc0b6c2430c30aac82377143a364a64967511813 /arch/sh/kernel/cpu/shmobile/pm.c
parentda64c2a8dee66ca03f4f3e15d84be7bedf73db3d (diff)
downloadtalos-op-linux-41bfb7d7a6ce3d8dd83112e65f5d97feefde818a.tar.gz
talos-op-linux-41bfb7d7a6ce3d8dd83112e65f5d97feefde818a.zip
sh: SH-Mobile R-standby register save/restore
Add code to save/restore registers during R-standby sleep on SH-Mobile processors. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/shmobile/pm.c')
-rw-r--r--arch/sh/kernel/cpu/shmobile/pm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm.c b/arch/sh/kernel/cpu/shmobile/pm.c
index ca029a44743c..e55968712706 100644
--- a/arch/sh/kernel/cpu/shmobile/pm.c
+++ b/arch/sh/kernel/cpu/shmobile/pm.c
@@ -33,7 +33,8 @@ ATOMIC_NOTIFIER_HEAD(sh_mobile_post_sleep_notifier_list);
#define SUSP_MODE_SLEEP (SUSP_SH_SLEEP)
#define SUSP_MODE_SLEEP_SF (SUSP_SH_SLEEP | SUSP_SH_SF)
#define SUSP_MODE_STANDBY_SF (SUSP_SH_STANDBY | SUSP_SH_SF)
-#define SUSP_MODE_RSTANDBY (SUSP_SH_RSTANDBY | SUSP_SH_MMU | SUSP_SH_SF)
+#define SUSP_MODE_RSTANDBY_SF \
+ (SUSP_SH_RSTANDBY | SUSP_SH_MMU | SUSP_SH_REGS | SUSP_SH_SF)
/*
* U-standby mode is unsupported since it needs bootloader hacks
*/
OpenPOWER on IntegriCloud