summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Poynor2013-09-09 16:30:55 -0500
committerTodd Poynor2013-09-09 16:49:53 -0500
commitff9ec2d9990fbf9a707df063f3d43e9169bdde16 (patch)
treeb364d80b6dec86d85a1e384bd575b33add53e119
parentf34861346d5c207912075fba9874090e4c947869 (diff)
downloadplatform-system-core-ff9ec2d9990fbf9a707df063f3d43e9169bdde16.tar.gz
platform-system-core-ff9ec2d9990fbf9a707df063f3d43e9169bdde16.tar.xz
platform-system-core-ff9ec2d9990fbf9a707df063f3d43e9169bdde16.zip
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.cpp3
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) {
249 if (events[n].data.ptr) 249 if (events[n].data.ptr)
250 (*(void (*)())events[n].data.ptr)(); 250 (*(void (*)())events[n].data.ptr)();
251 } 251 }
252
253 if (!nevents)
254 periodic_chores();
252 } 255 }
253 256
254 return; 257 return;