commit | 32e9d13de3c67d89b021ad239f2ec2194fca8205 | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Tue Oct 11 14:18:27 2016 -0700 |
committer | Tim Murray <timmurray@google.com> | Tue Oct 11 14:51:34 2016 -0700 |
tree | dcb9ee136bed1e1fdfd0800cdbb9a50550cf6206 | |
parent | 61a2b8b92de28a724f55aa3926c32e2b3763a6ad [diff] |
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