4 Apr 2011 19:55
[PATCH] X86: Reorder reboot method preferences
Matthew Garrett <mjg <at> redhat.com>
2011-04-04 17:55:05 GMT
2011-04-04 17:55:05 GMT
Windows reboots by hitting the ACPI reboot vector (if available), trying
the keyboard controller, hitting the ACPI reboot vector again and then
giving the keyboard controller one last go. This is important for modern
hardware, which often lacks a keyboard controller and may even wedge if the
legacy io ports are hit. Rework our reboot process a little to default to
matching this behaviour, although we'll fall through to attempting a triple
fault if nothing else works.
Signed-off-by: Matthew Garrett <mjg <at> redhat.com>
---
arch/x86/kernel/reboot.c | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index d3ce37e..9dd4330 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
<at> <at> -35,7 +35,7 <at> <at> EXPORT_SYMBOL(pm_power_off);
static const struct desc_ptr no_idt = {};
static int reboot_mode;
-enum reboot_type reboot_type = BOOT_KBD;
+enum reboot_type reboot_type = BOOT_ACPI;
int reboot_force;
#if defined(CONFIG_X86_32) && defined(CONFIG_SMP)
<at> <at> -477,9 +477,23 <at> <at> void __attribute__((weak)) mach_reboot_fixups(void)
{
}
(Continue reading)
RSS Feed