]> err.no Git - linux-2.6/commitdiff
[PATCH] x86_64 sync machine_power_off with i386
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Jul 2005 18:14:16 +0000 (12:14 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:35:45 +0000 (14:35 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/reboot.c

index 3d1cc09406a6c9583312a388f55e07d902fb43d8..47f95687905fd22d417d54632a40b784d186ed82 100644 (file)
@@ -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();
 }