diff options
Diffstat (limited to 'drivers/char/watchdog/wdt.c')
-rw-r--r-- | drivers/char/watchdog/wdt.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/char/watchdog/wdt.c b/drivers/char/watchdog/wdt.c index 5684aa379886..ec7e401228ee 100644 --- a/drivers/char/watchdog/wdt.c +++ b/drivers/char/watchdog/wdt.c | |||
@@ -63,12 +63,7 @@ static int wd_heartbeat; | |||
63 | module_param(heartbeat, int, 0); | 63 | module_param(heartbeat, int, 0); |
64 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" __MODULE_STRING(WD_TIMO) ")"); | 64 | MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" __MODULE_STRING(WD_TIMO) ")"); |
65 | 65 | ||
66 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 66 | static int nowayout = WATCHDOG_NOWAYOUT; |
67 | static int nowayout = 1; | ||
68 | #else | ||
69 | static int nowayout = 0; | ||
70 | #endif | ||
71 | |||
72 | module_param(nowayout, int, 0); | 67 | module_param(nowayout, int, 0); |
73 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)"); | 68 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)"); |
74 | 69 | ||
@@ -266,7 +261,7 @@ static irqreturn_t wdt_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
266 | printk(KERN_CRIT "Would Reboot.\n"); | 261 | printk(KERN_CRIT "Would Reboot.\n"); |
267 | #else | 262 | #else |
268 | printk(KERN_CRIT "Initiating system reboot.\n"); | 263 | printk(KERN_CRIT "Initiating system reboot.\n"); |
269 | machine_restart(NULL); | 264 | emergency_restart(); |
270 | #endif | 265 | #endif |
271 | #else | 266 | #else |
272 | printk(KERN_CRIT "Reset in 5ms.\n"); | 267 | printk(KERN_CRIT "Reset in 5ms.\n"); |