diff options
author | Todd Poynor <toddpoynor@google.com> | 2013-09-09 14:30:55 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2013-09-09 14:49:53 -0700 |
commit | ff9ec2d9990fbf9a707df063f3d43e9169bdde16 (patch) | |
tree | b364d80b6dec86d85a1e384bd575b33add53e119 | |
parent | f34861346d5c207912075fba9874090e4c947869 (diff) | |
download | core-ff9ec2d9990fbf9a707df063f3d43e9169bdde16.tar.gz |
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
-rw-r--r-- | healthd/healthd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 1719c22f6..9b84c3e8f 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp @@ -249,6 +249,9 @@ static void healthd_mainloop(void) { if (events[n].data.ptr) (*(void (*)())events[n].data.ptr)(); } + + if (!nevents) + periodic_chores(); } return; |