aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/suspend.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-30 00:24:15 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-30 01:37:42 -0400
commit02bf89347c7d6a6aeae64f02536dac038c402fce (patch)
tree33e5f6060eb483a8519e3d20deead91d344948b6 /arch/sh/include/asm/suspend.h
parent323ef8dba67fb7b9c709457bd0374d88cfb8f25f (diff)
sh: Keep track of allowed sleep modes
Add code to keep track of supported sleep modes. This to only export cpuidle modes that are backed by board support code. Also, do not allow suspend-to-ram if sdram board code is missing. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/suspend.h')
-rw-r--r--arch/sh/include/asm/suspend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/include/asm/suspend.h b/arch/sh/include/asm/suspend.h
index 8e2c55dc5fe6..8eddf236fb85 100644
--- a/arch/sh/include/asm/suspend.h
+++ b/arch/sh/include/asm/suspend.h
@@ -61,6 +61,9 @@ struct sh_sleep_data {
61 struct sh_sleep_regs data; 61 struct sh_sleep_regs data;
62}; 62};
63 63
64/* a bitmap of supported sleep modes (SUSP_SH..) */
65extern unsigned long sh_mobile_sleep_supported;
66
64#endif 67#endif
65 68
66/* flags passed to assembly suspend code */ 69/* flags passed to assembly suspend code */