From acc35f2630b928a0af53e65c14dcd08780209910 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 Rebase-Id: R89dfdbb2a0d1c756a79b5e77205d74a27ab6185b --- 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 dbb95f9f0d92..aa4f7b68c5e7 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