]> git.karo-electronics.de Git - mv-sheeva.git/commit
sh: Keep track of allowed sleep modes
authorMagnus Damm <damm@opensource.se>
Fri, 30 Oct 2009 04:24:15 +0000 (04:24 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 30 Oct 2009 05:37:42 +0000 (14:37 +0900)
commit02bf89347c7d6a6aeae64f02536dac038c402fce
tree33e5f6060eb483a8519e3d20deead91d344948b6
parent323ef8dba67fb7b9c709457bd0374d88cfb8f25f
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>
arch/sh/include/asm/suspend.h
arch/sh/kernel/cpu/shmobile/cpuidle.c
arch/sh/kernel/cpu/shmobile/pm.c