summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-06-26 10:47:03 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-27 19:45:47 +0000
commit753f005e03ea655d382eea07516f96d7ff02fae3 (patch)
treea5f1515c7d9ad62f87017d806cbd469f46781da6 /chip
parenta24e98da289e8b6bfebcfca6876acc09df28ac6a (diff)
downloadchrome-ec-753f005e03ea655d382eea07516f96d7ff02fae3.tar.gz
ish: arm T1 in __hw_clock_event_clear
We need to make sure that process_timers gets called when the event timer rolls over, which is a bug caused by the refactor in CL:1668056. BUG=b:133190570 BRANCH=none TEST=CtsSensorTestCases all passing Change-Id: Ib86ca0a5879476f334588c213cb7a4c732ac3be4 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1678240 Reviewed-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/ish/hwtimer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/chip/ish/hwtimer.c b/chip/ish/hwtimer.c
index 276ef1b5db..314af12693 100644
--- a/chip/ish/hwtimer.c
+++ b/chip/ish/hwtimer.c
@@ -177,9 +177,12 @@ uint32_t __hw_clock_event_get(void)
void __hw_clock_event_clear(void)
{
- last_deadline = 0xFFFFFFFF;
- wait_while_settling(HPET_T1_SETTLING);
- HPET_TIMER_CONF_CAP(1) &= ~HPET_Tn_INT_ENB_CNF;
+ /*
+ * We need to make sure that process_timers is called when the
+ * event timer rolls over, set for deadline when
+ * process_timers clears the event timer.
+ */
+ __hw_clock_event_set(0xFFFFFFFF);
}
uint64_t __hw_clock_source_read64(void)