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
This commit is contained in:
Randall Spangler
2012-04-12 12:01:02 -07:00
parent 20fdc57a35
commit f411bbbe19
3 changed files with 36 additions and 14 deletions

View File

@@ -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;