summaryrefslogtreecommitdiff
path: root/common/timer.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2013-12-10 11:16:05 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-12 23:07:48 +0000
commitebb8c88a5991333606900a4234ecafc402b5d2b7 (patch)
tree61f6ad731d7fc2f02e37fbea13095f60c6dfd593 /common/timer.c
parente6588c803f93c421970eb7b7220e05074922b096 (diff)
downloadchrome-ec-ebb8c88a5991333606900a4234ecafc402b5d2b7.tar.gz
Changed timer module to expire timers on deadline match
Modified the commond timer module to expire timers as soon as time matches the deadline instead of only after the deadline is passed. BRANCH=none BUG=chrome-os-partner:24490 TEST=On a peppy: - Run EC tests on host. - Run all EC tests on the target. - Keep the system on for days and occasionally verify that system is up and the keyboard is working. On a spring: - Run all EC tests on the target. Change-Id: Ieabfb769cf22ff8b04ca6d0a306312b90ea20ff3 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/179460 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/timer.c')
-rw-r--r--common/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/timer.c b/common/timer.c
index 0256d673bc..810a28c7d2 100644
--- a/common/timer.c
+++ b/common/timer.c
@@ -69,7 +69,7 @@ void process_timers(int overflow)
int tskid = 31 - __builtin_clz(check_timer);
/* timer has expired ? */
- if (timer_deadline[tskid].val < now.val)
+ if (timer_deadline[tskid].val <= now.val)
expire_timer(tskid);
else if ((timer_deadline[tskid].le.hi ==
now.le.hi) &&