summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/suspend.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-30 04:24:15 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-10-30 14:37:42 +0900
commit02bf89347c7d6a6aeae64f02536dac038c402fce (patch)
tree33e5f6060eb483a8519e3d20deead91d344948b6 /arch/sh/include/asm/suspend.h
parent323ef8dba67fb7b9c709457bd0374d88cfb8f25f (diff)
downloadlinux-02bf89347c7d6a6aeae64f02536dac038c402fce.tar.gz
linux-02bf89347c7d6a6aeae64f02536dac038c402fce.tar.bz2
linux-02bf89347c7d6a6aeae64f02536dac038c402fce.zip
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 {
struct sh_sleep_regs data;
};
+/* a bitmap of supported sleep modes (SUSP_SH..) */
+extern unsigned long sh_mobile_sleep_supported;
+
#endif
/* flags passed to assembly suspend code */