summaryrefslogtreecommitdiff
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2008-09-09 22:14:34 -0700
committerColin Cross <ccross@android.com>2010-09-29 17:49:06 -0700
commitdcb48436a54ac7fba61eed6d3be7ffb538e75f7f (patch)
tree9a32babeff36c3002d15f4dd4f8724374cedba9f /kernel/power/power.h
parentf102331ba477e9286046ed76c71a06d96f7372a5 (diff)
PM: Implement wakelock api.
PM: wakelock: Replace expire work with a timer The expire work function did not work in the normal case. Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r--kernel/power/power.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h
index 006270fe382d..3d949e12d34c 100644
--- a/kernel/power/power.h
+++ b/kernel/power/power.h
@@ -233,3 +233,10 @@ static inline void suspend_thaw_processes(void)
{
}
#endif
+
+#ifdef CONFIG_WAKELOCK
+/* kernel/power/wakelock.c */
+extern struct workqueue_struct *suspend_work_queue;
+extern struct wake_lock main_wake_lock;
+extern suspend_state_t requested_suspend_state;
+#endif