diff options
author | Simon Glass <sjg@chromium.org> | 2012-06-01 21:45:36 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-05 09:30:21 -0700 |
commit | 99845e2fd5c89f78f5d34ea5c705e6d55aba5043 (patch) | |
tree | b807d53acbc4b91adf6fd34b7159222930a17bc3 /chip/lm4/watchdog.c | |
parent | fb425cf11f5a0f9ea2a1a7dc19789b328b3bc859 (diff) | |
download | chrome-ec-99845e2fd5c89f78f5d34ea5c705e6d55aba5043.tar.gz |
Add a common watchdog file
Some things about watchdogs are common across Cortex-M3, so create a
common watchdog file to hold these. Put the watchdog task in there as
the first customer.
BUG=chrome-os-partner:10145
TEST=build for all boards
Change-Id: Id55f71a807ee12bae3758afc213c30c731eadc07
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/24395
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/watchdog.c')
-rw-r--r-- | chip/lm4/watchdog.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c index 915c7e3489..2982c8b217 100644 --- a/chip/lm4/watchdog.c +++ b/chip/lm4/watchdog.c @@ -160,13 +160,3 @@ int watchdog_init(void) return EC_SUCCESS; } - - -/* Low priority task to reload the watchdog */ -void watchdog_task(void) -{ - while (1) { - usleep(WATCHDOG_RELOAD_MS * 1000); - watchdog_reload(); - } -} |