commit | fb896944b6a78d951c8442b444af860a28117e5c | [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 | 5639d9ad6ef0157586bfb5df35056039b611a448 [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