diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:26:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:26:12 -0400 |
commit | 7a9787e1eba95a166265e6a260cf30af04ef0a99 (patch) | |
tree | e730a4565e0318140d2fbd2f0415d18a339d7336 /arch/x86/kernel/reboot.c | |
parent | 41b9eb264c8407655db57b60b4457fe1b2ec9977 (diff) | |
parent | 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff) |
Merge commit 'v2.6.28-rc2' into x86/pci-ioapic-boot-irq-quirks
Diffstat (limited to 'arch/x86/kernel/reboot.c')
-rw-r--r-- | arch/x86/kernel/reboot.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index f8a62160e151..f4c93f1cfc19 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c | |||
@@ -29,7 +29,11 @@ EXPORT_SYMBOL(pm_power_off); | |||
29 | 29 | ||
30 | static const struct desc_ptr no_idt = {}; | 30 | static const struct desc_ptr no_idt = {}; |
31 | static int reboot_mode; | 31 | static int reboot_mode; |
32 | enum reboot_type reboot_type = BOOT_KBD; | 32 | /* |
33 | * Keyboard reset and triple fault may result in INIT, not RESET, which | ||
34 | * doesn't work when we're in vmx root mode. Try ACPI first. | ||
35 | */ | ||
36 | enum reboot_type reboot_type = BOOT_ACPI; | ||
33 | int reboot_force; | 37 | int reboot_force; |
34 | 38 | ||
35 | #if defined(CONFIG_X86_32) && defined(CONFIG_SMP) | 39 | #if defined(CONFIG_X86_32) && defined(CONFIG_SMP) |
@@ -177,6 +181,14 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = { | |||
177 | DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 2400"), | 181 | DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 2400"), |
178 | }, | 182 | }, |
179 | }, | 183 | }, |
184 | { /* Handle problems with rebooting on Dell T5400's */ | ||
185 | .callback = set_bios_reboot, | ||
186 | .ident = "Dell Precision T5400", | ||
187 | .matches = { | ||
188 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), | ||
189 | DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation T5400"), | ||
190 | }, | ||
191 | }, | ||
180 | { /* Handle problems with rebooting on HP laptops */ | 192 | { /* Handle problems with rebooting on HP laptops */ |
181 | .callback = set_bios_reboot, | 193 | .callback = set_bios_reboot, |
182 | .ident = "HP Compaq Laptop", | 194 | .ident = "HP Compaq Laptop", |
@@ -403,10 +415,9 @@ void native_machine_shutdown(void) | |||
403 | { | 415 | { |
404 | /* Stop the cpus and apics */ | 416 | /* Stop the cpus and apics */ |
405 | #ifdef CONFIG_SMP | 417 | #ifdef CONFIG_SMP |
406 | int reboot_cpu_id; | ||
407 | 418 | ||
408 | /* The boot cpu is always logical cpu 0 */ | 419 | /* The boot cpu is always logical cpu 0 */ |
409 | reboot_cpu_id = 0; | 420 | int reboot_cpu_id = 0; |
410 | 421 | ||
411 | #ifdef CONFIG_X86_32 | 422 | #ifdef CONFIG_X86_32 |
412 | /* See if there has been given a command line override */ | 423 | /* See if there has been given a command line override */ |