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
This commit is contained in:
Todd Poynor 2014-03-04 13:11:21 -08:00
parent d030033a39
commit 6f26891d67
1 changed files with 3 additions and 0 deletions

View File

@ -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) {