From 06483276516d043b568054d63b658f616d12e368 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Fri, 26 Aug 2011 18:39:17 -0700 Subject: watchdog: tegra_wdt: give time for spinlock lockup detection to work To allow the spinlock lockup detection to actually trigger after 60 seconds, the tegra_wdt heartbeat needs to be longer than that. Bumping it to 120sec, as at the 50% marker the watchdog takes an interrupt. Change-Id: I099fd7720d65c0e2050fa91161e30485fe84a1ed Signed-off-by: JP Abgrall --- drivers/watchdog/tegra_wdt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers/watchdog') diff --git a/drivers/watchdog/tegra_wdt.c b/drivers/watchdog/tegra_wdt.c index d11b99816ca6..1a73e36dc6cf 100644 --- a/drivers/watchdog/tegra_wdt.c +++ b/drivers/watchdog/tegra_wdt.c @@ -50,7 +50,11 @@ #define WDT_SEL_TMR1 (0 << 4) #define WDT_SYS_RST (1 << 2) -static int heartbeat = 30; /* must be greater than MIN_WDT_PERIOD and lower than MAX_WDT_PERIOD */ +/* + * For spinlock lockup detection to work, the heartbeat should be 2*lockup + * for cases where the spinlock disabled irqs. + */ +static int heartbeat = 120; /* must be greater than MIN_WDT_PERIOD and lower than MAX_WDT_PERIOD */ struct tegra_wdt { struct miscdevice miscdev; -- cgit v1.2.3