x86: Add quirk to make Apple MacBookPro5,1 use reboot=pci

MacBookPro5,1 is not able to reboot unless reboot=pci is set.
This patch forces it through a DMI quirk specific to this
device.

Signed-off-by: Ozan Çağlayan <ozan@pardus.org.tr>
LKML-Reference: <1249403971-6543-1-git-send-email-ozan@pardus.org.tr>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Ozan Çağlayan and committed by Ingo Molnar 498cdbfb 087d7e56

+9 -1
+9 -1
arch/x86/kernel/reboot.c
··· 405 #endif /* CONFIG_X86_32 */ 406 407 /* 408 - * Apple MacBook5,2 (2009 MacBook) needs reboot=p 409 */ 410 static int __init set_pci_reboot(const struct dmi_system_id *d) 411 { ··· 424 .matches = { 425 DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), 426 DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5,2"), 427 }, 428 }, 429 { }
··· 405 #endif /* CONFIG_X86_32 */ 406 407 /* 408 + * Some Apple MacBook and MacBookPro's needs reboot=p to be able to reboot 409 */ 410 static int __init set_pci_reboot(const struct dmi_system_id *d) 411 { ··· 424 .matches = { 425 DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), 426 DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5,2"), 427 + }, 428 + }, 429 + { /* Handle problems with rebooting on Apple MacBookPro5,1 */ 430 + .callback = set_pci_reboot, 431 + .ident = "Apple MacBookPro5,1", 432 + .matches = { 433 + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), 434 + DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro5,1"), 435 }, 436 }, 437 { }