History log of /system/core/libsuspend/autosuspend_wakeup_count.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
23c8bab0243bc6e7be8b95702c262c354009d56a 18-Oct-2016 Tim Murray <timmurray@google.com> Revert "libsuspend: move to exponential backoff"

This reverts commit fb896944b6a78d951c8442b444af860a28117e5c.

bug 32180327

Change-Id: Ic26bdffac6c56b102348f5393e6eb5d895960d7e
/system/core/libsuspend/autosuspend_wakeup_count.c
fb896944b6a78d951c8442b444af860a28117e5c 11-Oct-2016 Tim Murray <timmurray@google.com> libsuspend: move to exponential backoff

If for some reason the system can't suspend (usually a driver bug),
libsuspend will currently attempt to retry suspend after 100ms. Because
entering suspend takes a significant amount of CPU time, this can be
extremely expensive and be a major contributor to rapid battery
drain. Move autosuspend to use exponential backoff if the previous
suspend attempt failed.

bug 32092914

Change-Id: I3e9e944f290de5f1853a02e3f61721ba9159df46
/system/core/libsuspend/autosuspend_wakeup_count.c
d3027d85f30a13d03e2c58c009215bf0b48f9ac9 13-May-2015 Ruchi Kandoi <kandoiruchi@google.com> Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts.

Adds the call to wakeup_callback when the write to the /sys/power/state
fails. This will help userspace account for the suspend aborts.

Bug: 17478088
Bug: 18179405
Change-Id: Icd1194cfbaf61044ca0b2fe63a10a4c52e1535bc
/system/core/libsuspend/autosuspend_wakeup_count.c
0446e16f5333977810dec3a33c1af89d1f61d2de 15-May-2015 Jeff Brown <jeffbrown@google.com> Add TEMP_FAILURE_RETRY to libsuspend.

In testing, I observed one instance of a call failing due to a signal
sent to the process. This could happen at various times so it's better
to be safe than sorry.

Bug: 20534809
Change-Id: I42242087300d8b840a50aec34aa6b2e1507cab50
/system/core/libsuspend/autosuspend_wakeup_count.c
9552cdf434ac1c9ff8730f5492d649845ad4f86c 07-Mar-2014 Dianne Hackborn <hackbod@google.com> Add ability to have a callback when wakeups happen.

Change-Id: I02ff0e035bf8a97bd1a3b6b1699181fc3a137d79
/system/core/libsuspend/autosuspend_wakeup_count.c
62f9ffac1aa4809c0acd29dc4c4872a3b4da2062 26-Jul-2012 Edwin Vane <edwin.vane@intel.com> Fix unused param warning

libsuspend had only a single warning in the clang build. Fixing it to
make the build clean.

Change-Id: Iaac5f9144b6e6cb122141c6416056c1b2c9aa98e
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
/system/core/libsuspend/autosuspend_wakeup_count.c
a2582c2c4d20684b21aaf50913a27239789bf5eb 04-May-2012 Colin Cross <ccross@android.com> libsuspend: create new library to handle triggering suspend

libsuspend provides functions autosuspend_enable() and
autosuspend_disable() to trigger suspend on a variety of different
kernels.

Change-Id: I5dc28fb51532fa7c514330f1cfde7698d31d734c
/system/core/libsuspend/autosuspend_wakeup_count.c