Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f26891d authored by Todd Poynor's avatar Todd Poynor
Browse files

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
parent d030033a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {