diff options
author | Magnus Damm <damm@opensource.se> | 2009-10-30 05:24:15 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-30 06:37:42 +0100 |
commit | 02bf89347c7d6a6aeae64f02536dac038c402fce (patch) | |
tree | 33e5f6060eb483a8519e3d20deead91d344948b6 /arch/sh/include | |
parent | sh: Rework SuperH Mobile sleep mode code (diff) | |
download | linux-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.h | 3 |
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 */ |