Commit afec654b authored by Dave Jones's avatar Dave Jones

[WATCHDOG] More panic -> shutdown replacements in pcwd.c

parent 2b81792f
...@@ -278,8 +278,10 @@ static int pcwd_ioctl(struct inode *inode, struct file *file, ...@@ -278,8 +278,10 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,
{ {
rv |= WDIOF_OVERHEAT; rv |= WDIOF_OVERHEAT;
if (temp_panic) if (temp_panic) {
panic("pcwd: Temperature overheat trip!\n"); printk (KERN_INFO "pcwd: Temperature overheat trip!\n");
machine_power_off();
}
} }
} }
else else
...@@ -291,8 +293,10 @@ static int pcwd_ioctl(struct inode *inode, struct file *file, ...@@ -291,8 +293,10 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,
{ {
rv |= WDIOF_OVERHEAT; rv |= WDIOF_OVERHEAT;
if (temp_panic) if (temp_panic) {
panic("pcwd: Temperature overheat trip!\n"); printk (KERN_INFO "pcwd: Temperature overheat trip!\n");
machine_power_off();
}
} }
} }
......
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