diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-12 12:01:02 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-12 12:04:37 -0700 |
commit | f411bbbe19b91ee8fa22fa3c04468127d85e46e1 (patch) | |
tree | cf9782e7f127d2fcaa9da03cb50f99f15983e0d7 /include/task.h | |
parent | 20fdc57a351998f4a43731249f57bb262d610f72 (diff) | |
download | chrome-ec-f411bbbe19b91ee8fa22fa3c04468127d85e46e1.tar.gz |
Re-enable watchdog in watchdog_reload()
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:8971
TEST=manual
waitms 1500
(see watchdog trace)
waitms 1500
(should see watchdog trace again)
waitms 3000
(should see trace, then system should reboot)
Change-Id: Ieb5009d7a7bc9e1ed795e58efb0cb44a1eeb2706
Diffstat (limited to 'include/task.h')
-rw-r--r-- | include/task.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/task.h b/include/task.h index 5644d4078e..5855bdfeb5 100644 --- a/include/task.h +++ b/include/task.h @@ -94,6 +94,15 @@ void task_disable_irq(int irq); /* Software-triggers an interrupt. */ void task_trigger_irq(int irq); +/* Clears a pending interrupt. + * + * Note that most interrupts can be removed from the pending state simply by + * handling whatever caused the interrupt in the first place. This only needs + * to be called if an interrupt handler disables itself without clearing the + * reason for the interrupt, and then the interrupt is re-enabled from a + * different context. */ +void task_clear_pending_irq(int irq); + struct mutex { uint32_t lock; uint32_t waiters; |