Skip to content

Commit

Permalink
[PATCH] x86_64: Fix reboot_force
Browse files Browse the repository at this point in the history
We only want to shutdown the apics if reboot_force
is not specified.  Be we are doing this both
in machine_shutdown which is called unconditionally
and if (!reboot_force).  So simply call machine_shutdown
if (!reboot_force).  It looks like something
went weird with merging some of the kexec patches for
x86_64, and caused this.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jul 26, 2005
1 parent 4a1421f commit 7c9a900
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arch/x86_64/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,8 @@ void machine_restart(char * __unused)

printk("machine restart\n");

machine_shutdown();

if (!reboot_force) {
local_irq_disable();
#ifndef CONFIG_SMP
disable_local_APIC();
#endif
disable_IO_APIC();
local_irq_enable();
machine_shutdown();
}

/* Tell the BIOS if we want cold or warm reboot */
Expand Down

0 comments on commit 7c9a900

Please sign in to comment.