summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-09-09 16:54:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-09 16:54:49 -0700
commit47f284af49d2aef7c3bc0c2c9d1295c190e8be1a (patch)
tree366e193499761bb56be9118091ca2102959de0c2 /healthd
parent5868e06192bd14c3037c8b83155b35fe9ec41f93 (diff)
parentee549d256f50ca3078a8537fa5b32a3f86295ea5 (diff)
downloadsystem_core-47f284af49d2aef7c3bc0c2c9d1295c190e8be1a.zip
system_core-47f284af49d2aef7c3bc0c2c9d1295c190e8be1a.tar.gz
system_core-47f284af49d2aef7c3bc0c2c9d1295c190e8be1a.tar.bz2
am ee549d25: am ff9ec2d9: healthd: perform periodic chores when awake and on battery power
* commit 'ee549d256f50ca3078a8537fa5b32a3f86295ea5': healthd: perform periodic chores when awake and on battery power
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp
index f7c79c4..900cc42 100644
--- a/healthd/healthd.cpp
+++ b/healthd/healthd.cpp
@@ -250,6 +250,9 @@ static void healthd_mainloop(void) {
if (events[n].data.ptr)
(*(void (*)())events[n].data.ptr)();
}
+
+ if (!nevents)
+ periodic_chores();
}
return;