lkml.org 
[lkml]   [2005]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 17/23] pcwd.c: Call kernel_power_off not machine_power_off
    From
    Date

    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/
    \
     
     \ /
      Last update: 2005-07-26 20:11    [W:0.020 / U:29.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site