summaryrefslogtreecommitdiffstats
path: root/libsuspend
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2014-03-04 13:11:21 -0800
committerTodd Poynor <toddpoynor@google.com>2014-03-04 20:02:53 -0800
commit6f26891d67a55515b46c3da38d63c4d41c3cfefc (patch)
tree74f3fa08eea778262c145ee7e7c9e3ef64063b3a /libsuspend
parentd030033a39196bf377a70ceb0ade7d40fa917664 (diff)
downloadsystem_core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.zip
system_core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.tar.gz
system_core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.tar.bz2
libsuspend: use wakeup count interface for system suspend
Use the wakeup count interface for requesting suspend, instead of autosleep, to allow userspace to collect stats on suspend/resume activity. Change-Id: I44b5ef031b2bdc5b09c904fb2adbbe16370c2984
Diffstat (limited to 'libsuspend')
-rw-r--r--libsuspend/autosuspend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsuspend/autosuspend.c b/libsuspend/autosuspend.c
index eb1f66e..edd1007 100644
--- a/libsuspend/autosuspend.c
+++ b/libsuspend/autosuspend.c
@@ -38,10 +38,13 @@ static int autosuspend_init(void)
goto out;
}
+/* Remove autosleep so userspace can manager suspend/resume and keep stats */
+#if 0
autosuspend_ops = autosuspend_autosleep_init();
if (autosuspend_ops) {
goto out;
}
+#endif
autosuspend_ops = autosuspend_wakeup_count_init();
if (autosuspend_ops) {