commit | ff9ec2d9990fbf9a707df063f3d43e9169bdde16 | [log] [tgz] |
---|---|---|
author | Todd Poynor <toddpoynor@google.com> | Mon Sep 09 14:30:55 2013 -0700 |
committer | Todd Poynor <toddpoynor@google.com> | Mon Sep 09 14:49:53 2013 -0700 |
tree | b364d80b6dec86d85a1e384bd575b33add53e119 | |
parent | f34861346d5c207912075fba9874090e4c947869 [diff] [blame] |
healthd: perform periodic chores when awake and on battery power Monitor battery/charging status at normal awake rate when on battery power. Bug: 10650797 Change-Id: I914d24af4963ab9d52b03c0a2615ad653ced9b12
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 1719c22..9b84c3e 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp
@@ -249,6 +249,9 @@ if (events[n].data.ptr) (*(void (*)())events[n].data.ptr)(); } + + if (!nevents) + periodic_chores(); } return;