From 68abc0f4288b6b9521f1dd05811f4b1f15e78287 Mon Sep 17 00:00:00 2001 From: Doug Anderson Date: Thu, 19 Jun 2014 13:32:15 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/204895 Reviewed-by: Randall Spangler --- chip/lm4/config_chip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chip/lm4') 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 -- cgit v1.2.1