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 10/23] Use kernel_power_off in sysrq-o
    From
    Date

    We already do all of the gymnastics to run from process context
    to call the power off code so call into the power off code cleanly.

    This especially helps acpi as part of it's shutdown logic should
    run acpi_shutdown called from device_shutdown which was not
    being called from here.

    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
    ---

    kernel/power/poweroff.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    acf31d44f4864bf13fa5a9fe49e0cc9c0ec93cee
    diff --git a/kernel/power/poweroff.c b/kernel/power/poweroff.c
    --- a/kernel/power/poweroff.c
    +++ b/kernel/power/poweroff.c
    @@ -9,6 +9,7 @@
    #include <linux/init.h>
    #include <linux/pm.h>
    #include <linux/workqueue.h>
    +#include <linux/reboot.h>

    /*
    * When the user hits Sys-Rq o to power down the machine this is the
    @@ -17,8 +18,7 @@

    static void do_poweroff(void *dummy)
    {
    - if (pm_power_off)
    - pm_power_off();
    + kernel_power_off();
    }

    static DECLARE_WORK(poweroff_work, do_poweroff, NULL);
    -
    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 21:30    [W:4.218 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site