mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 13:22:55 +00:00
[PATCH] pcwd.c: Call kernel_power_off not machine_power_off
The call appears to come from process context so kernel_power_off should be safe. And acpi_power_off won't necessarily work if you just call machine_power_off. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
fdde86ac50
commit
68acc05d01
@ -344,7 +344,7 @@ static int pcwd_get_status(int *status)
|
|||||||
*status |= WDIOF_OVERHEAT;
|
*status |= WDIOF_OVERHEAT;
|
||||||
if (temp_panic) {
|
if (temp_panic) {
|
||||||
printk (KERN_INFO PFX "Temperature overheat trip!\n");
|
printk (KERN_INFO PFX "Temperature overheat trip!\n");
|
||||||
machine_power_off();
|
kernel_power_off();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -355,7 +355,7 @@ static int pcwd_get_status(int *status)
|
|||||||
*status |= WDIOF_OVERHEAT;
|
*status |= WDIOF_OVERHEAT;
|
||||||
if (temp_panic) {
|
if (temp_panic) {
|
||||||
printk (KERN_INFO PFX "Temperature overheat trip!\n");
|
printk (KERN_INFO PFX "Temperature overheat trip!\n");
|
||||||
machine_power_off();
|
kernel_power_off();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user