summaryrefslogtreecommitdiff
path: root/core/cortex-m/watchdog.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-30 12:16:54 -0700
committerGerrit <chrome-bot@google.com>2012-10-30 15:33:24 -0700
commit8b3a242ff0b8398b37378c67fe2c63beec1fa827 (patch)
treebb647b1ae48da03ccdb8efb290add7575145f691 /core/cortex-m/watchdog.c
parenta21ea56e76ff71849d45f59608c0beb7bede4c02 (diff)
downloadchrome-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 'core/cortex-m/watchdog.c')
-rw-r--r--core/cortex-m/watchdog.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/cortex-m/watchdog.c b/core/cortex-m/watchdog.c
index fe8ba776bf..ff876912d1 100644
--- a/core/cortex-m/watchdog.c
+++ b/core/cortex-m/watchdog.c
@@ -39,12 +39,3 @@ void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp)
timer_print_info();
task_print_list();
}
-
-/* Low priority task to reload the watchdog */
-void watchdog_task(void)
-{
- while (1) {
- msleep(WATCHDOG_RELOAD_MS);
- watchdog_reload();
- }
-}