summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-08-26 18:39:17 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:37:12 -0800
commit06483276516d043b568054d63b658f616d12e368 (patch)
treec1048c9200bf98771c013f926ca0792d6dcf3ec8 /drivers/watchdog
parent13907ab639918deee8b05080cfccee504dfbe567 (diff)
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 <jpa@google.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/tegra_wdt.c6
1 files changed, 5 insertions, 1 deletions
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;