diff options
author | Todd Poynor <toddpoynor@google.com> | 2014-03-04 13:11:21 -0800 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2014-03-04 20:02:53 -0800 |
commit | 6f26891d67a55515b46c3da38d63c4d41c3cfefc (patch) | |
tree | 74f3fa08eea778262c145ee7e7c9e3ef64063b3a /libsuspend | |
parent | d030033a39196bf377a70ceb0ade7d40fa917664 (diff) | |
download | core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.tar.gz core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.tar.bz2 core-6f26891d67a55515b46c3da38d63c4d41c3cfefc.zip |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsuspend/autosuspend.c b/libsuspend/autosuspend.c index eb1f66e37..edd100711 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) { |