Messages in this thread Patch in this message | | | Subject | [PATCH 17/23] pcwd.c: Call kernel_power_off not machine_power_off | From | (Eric W. Biederman) | Date | Tue, 26 Jul 2005 12:03:08 -0600 |
| |
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> ---
drivers/char/watchdog/pcwd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
b663accd4b051598a8c877aeb2e4ee7da94e3af3 diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c --- a/drivers/char/watchdog/pcwd.c +++ b/drivers/char/watchdog/pcwd.c @@ -344,7 +344,7 @@ static int pcwd_get_status(int *status) *status |= WDIOF_OVERHEAT; if (temp_panic) { printk (KERN_INFO PFX "Temperature overheat trip!\n"); - machine_power_off(); + kernel_power_off(); } } } else { @@ -355,7 +355,7 @@ static int pcwd_get_status(int *status) *status |= WDIOF_OVERHEAT; if (temp_panic) { printk (KERN_INFO PFX "Temperature overheat trip!\n"); - machine_power_off(); + kernel_power_off(); } } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |