summaryrefslogtreecommitdiff
path: root/kernel/power/Kconfig
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2008-10-07 20:48:01 -0700
committerColin Cross <ccross@android.com>2011-06-14 09:08:42 -0700
commitc1783f55b10d7dfb4ada9a7149821b644255d8df (patch)
treeb57f37018d30e734588c761366168c9255c95d2b /kernel/power/Kconfig
parent1b0749512f76005ce41607472e6f36411fa96649 (diff)
PM: Implement early suspend api
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r--kernel/power/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 1c04e80d118..41bd5bd9983 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -21,6 +21,9 @@ config SUSPEND_FREEZER
config HAS_WAKELOCK
bool
+config HAS_EARLYSUSPEND
+ bool
+
config WAKELOCK
bool "Wake lock"
depends on PM && RTC_CLASS
@@ -37,6 +40,15 @@ config WAKELOCK_STAT
---help---
Report wake lock stats in /proc/wakelocks
+config EARLYSUSPEND
+ bool "Early suspend"
+ depends on WAKELOCK
+ default y
+ select HAS_EARLYSUSPEND
+ ---help---
+ Call early suspend handlers when the user requested sleep state
+ changes.
+
config HIBERNATE_CALLBACKS
bool