summaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-30 05:24:15 +0100
committerPaul Mundt <lethal@linux-sh.org>2009-10-30 06:37:42 +0100
commit02bf89347c7d6a6aeae64f02536dac038c402fce (patch)
tree33e5f6060eb483a8519e3d20deead91d344948b6 /arch/sh/include
parentsh: Rework SuperH Mobile sleep mode code (diff)
downloadlinux-02bf89347c7d6a6aeae64f02536dac038c402fce.tar.xz
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')
-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 */