diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-30 12:16:54 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 15:33:24 -0700 |
commit | 8b3a242ff0b8398b37378c67fe2c63beec1fa827 (patch) | |
tree | bb647b1ae48da03ccdb8efb290add7575145f691 /chip/lm4/watchdog.c | |
parent | a21ea56e76ff71849d45f59608c0beb7bede4c02 (diff) | |
download | chrome-ec-8b3a242ff0b8398b37378c67fe2c63beec1fa827.tar.gz |
Watchdog is reloaded by HOOK_TICK, not its own task
This reduces memory footprint.
BUG=chrome-os-partner:15714
BRANCH=none
TEST=system still boots; 'waitms 1500' prints watchdog error dump
Change-Id: Ieb0248a34655514b03d919cc36c2b369691da716
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36937
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'chip/lm4/watchdog.c')
-rw-r--r-- | chip/lm4/watchdog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c index 58cabf80f9..7bc7aa8a60 100644 --- a/chip/lm4/watchdog.c +++ b/chip/lm4/watchdog.c @@ -5,10 +5,8 @@ /* Watchdog driver */ -#include "board.h" #include "clock.h" #include "common.h" -#include "config.h" #include "registers.h" #include "gpio.h" #include "hooks.h" @@ -79,6 +77,7 @@ void watchdog_reload(void) /* Re-lock watchdog registers */ LM4_WATCHDOG_LOCK(0) = 0xdeaddead; } +DECLARE_HOOK(HOOK_TICK, watchdog_reload, HOOK_PRIO_DEFAULT); static void watchdog_freq_changed(void) { |