aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/pcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/watchdog/pcwd.c')
-rw-r--r--drivers/char/watchdog/pcwd.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c
index 592dca108866..427ad51b7a35 100644
--- a/drivers/char/watchdog/pcwd.c
+++ b/drivers/char/watchdog/pcwd.c
@@ -146,12 +146,7 @@ static int heartbeat = WATCHDOG_HEARTBEAT;
146module_param(heartbeat, int, 0); 146module_param(heartbeat, int, 0);
147MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<=heartbeat<=7200, default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); 147MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<=heartbeat<=7200, default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
148 148
149#ifdef CONFIG_WATCHDOG_NOWAYOUT 149static int nowayout = WATCHDOG_NOWAYOUT;
150static int nowayout = 1;
151#else
152static int nowayout = 0;
153#endif
154
155module_param(nowayout, int, 0); 150module_param(nowayout, int, 0);
156MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)"); 151MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)");
157 152
@@ -344,7 +339,7 @@ static int pcwd_get_status(int *status)
344 *status |= WDIOF_OVERHEAT; 339 *status |= WDIOF_OVERHEAT;
345 if (temp_panic) { 340 if (temp_panic) {
346 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 341 printk (KERN_INFO PFX "Temperature overheat trip!\n");
347 machine_power_off(); 342 kernel_power_off();
348 } 343 }
349 } 344 }
350 } else { 345 } else {
@@ -355,7 +350,7 @@ static int pcwd_get_status(int *status)
355 *status |= WDIOF_OVERHEAT; 350 *status |= WDIOF_OVERHEAT;
356 if (temp_panic) { 351 if (temp_panic) {
357 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 352 printk (KERN_INFO PFX "Temperature overheat trip!\n");
358 machine_power_off(); 353 kernel_power_off();
359 } 354 }
360 } 355 }
361 } 356 }