diff options
author | Tim Murray <timmurray@google.com> | 2016-10-11 14:18:27 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2016-10-11 14:51:34 -0700 |
commit | fb896944b6a78d951c8442b444af860a28117e5c (patch) | |
tree | dcb9ee136bed1e1fdfd0800cdbb9a50550cf6206 /libutils/Unicode.cpp | |
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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions