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:
parent
d030033a39
commit
6f26891d67
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue