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 /core/cortex-m | |
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 'core/cortex-m')
-rw-r--r-- | core/cortex-m/build.mk | 2 | ||||
-rw-r--r-- | core/cortex-m/watchdog.c | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index 35ad2d0517..ec1ba424a8 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -14,4 +14,4 @@ CFLAGS_CPU=-mcpu=cortex-m4 -mthumb -Os -mno-sched-prolog CFLAGS_CPU+=$(CFLAGS_FPU-y) core-y=cpu.o init.o panic.o switch.o task.o timer.o -core-$(CONFIG_TASK_WATCHDOG)+=watchdog.o +core-$(CONFIG_WATCHDOG)+=watchdog.o 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(); - } -} |