Commit 403d2f4b authored by Dave Jones's avatar Dave Jones

[WATCHDOG] pcwd.c: if cpu has overheated, we want to shutdown, not panic.

Based on a patch from Tariq Shureih <tariq@linux.co.intel.com>
parent 61b8dae6
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
#include <linux/watchdog.h> #include <linux/watchdog.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/reboot.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/io.h> #include <asm/io.h>
...@@ -201,7 +202,8 @@ void pcwd_showprevstate(void) ...@@ -201,7 +202,8 @@ void pcwd_showprevstate(void)
if (card_status & WD_T110) { if (card_status & WD_T110) {
printk("pcwd: Card senses a CPU Overheat. Panicking!\n"); printk("pcwd: Card senses a CPU Overheat. Panicking!\n");
panic("pcwd: CPU Overheat.\n"); printk("pcwd: CPU Overheat.\n");
machine_power_off();
} }
if ((!(card_status & WD_WDRST)) && if ((!(card_status & WD_WDRST)) &&
...@@ -213,7 +215,8 @@ void pcwd_showprevstate(void) ...@@ -213,7 +215,8 @@ void pcwd_showprevstate(void)
if (card_status & 0x04) { if (card_status & 0x04) {
printk("pcwd: Card senses a CPU Overheat. Panicking!\n"); printk("pcwd: Card senses a CPU Overheat. Panicking!\n");
panic("pcwd: CPU Overheat.\n"); printk("pcwd: CPU Overheat.\n");
machine_power_off();
} }
if ((!(card_status & 0x01)) && if ((!(card_status & 0x01)) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment