diff options
author | Doug Anderson <dianders@chromium.org> | 2014-06-19 13:32:15 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-23 21:48:42 +0000 |
commit | 68abc0f4288b6b9521f1dd05811f4b1f15e78287 (patch) | |
tree | d9152ce941dd0ba33fd67bd9e8d90d829679f684 /chip/lm4 | |
parent | 09db229f212a95bc674625895e68670a7aa57c00 (diff) | |
download | chrome-ec-68abc0f4288b6b9521f1dd05811f4b1f15e78287.tar.gz |
watchdog: Give more leeway to the independent watchdog
It would be really nice to be guaranteed to see watchdog warnings
before we actually hit a watchdog reset even if something strange is
going on with the CPU. Let's increase the margin between the timer
and the independent so that the hardware watchdog is really hit as a
last resort.
It seems like a 1.6 second hardware watchdog wouldn't be the end of
the world so let's bump that way rather than increasing the number of
warnings.
BRANCH=ToT
BUG=chrome-os-partner:29162
TEST="waitms 1000" on EC console no longer ever reboots and "waitms
2000" usually does.
Change-Id: Ic5e5ddec22fb8484cc7c552b19d3f2043c105d0c
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/204895
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4')
-rw-r--r-- | chip/lm4/config_chip.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/lm4/config_chip.h b/chip/lm4/config_chip.h index 19b331966e..88f6a76668 100644 --- a/chip/lm4/config_chip.h +++ b/chip/lm4/config_chip.h @@ -20,7 +20,8 @@ #define CONFIG_UART_TX_BUF_SIZE 8192 /* Interval between HOOK_TICK notifications */ -#define HOOK_TICK_INTERVAL (250 * MSEC) +#define HOOK_TICK_INTERVAL_MS 250 +#define HOOK_TICK_INTERVAL (HOOK_TICK_INTERVAL_MS * MSEC) /* Maximum number of deferrable functions */ #define DEFERRABLE_MAX_COUNT 8 |