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 21/23] x86_64 sync machine_power_off with i386
    From
    Date

    i386 machine_power_off was disabling the local apic
    and all of it's users wanted to be on the boot cpu.
    So call machine_shutdown which places us on the boot
    cpu and disables the apics. This keeps us in sync
    and reduces the number of cases we need to worry about in
    the power management code.

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

    arch/x86_64/kernel/reboot.c | 3 +++
    1 files changed, 3 insertions(+), 0 deletions(-)

    dbc7607f71b4c6e38b141340f7afd33248a4205a
    diff --git a/arch/x86_64/kernel/reboot.c b/arch/x86_64/kernel/reboot.c
    --- a/arch/x86_64/kernel/reboot.c
    +++ b/arch/x86_64/kernel/reboot.c
    @@ -153,6 +153,9 @@ void machine_halt(void)

    void machine_power_off(void)
    {
    + if (!reboot_force) {
    + machine_shutdown();
    + }
    if (pm_power_off)
    pm_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:30    [W:0.018 / U:30.156 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site