x86: Add iMac9,1 to pci_reboot_dmi_table
authorJustin P. Mattock <justinmattock@gmail.com>
Tue, 16 Feb 2010 23:17:29 +0000 (15:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Feb 2010 07:08:21 +0000 (08:08 +0100)
On the iMac9,1 /sbin/reboot results in a black mangled screen. Adding
this DMI entry gets the machine to reboot cleanly as it should.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
LKML-Reference: <1266362249-3337-1-git-send-email-justinmattock@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/reboot.c

index 704bddcdf64dd2f53a3bb81a1741388ab57f9bf4..8e1aac86b50c6dcce26df41a1728ea21cf2a54e8 100644 (file)
@@ -461,6 +461,14 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "Macmini3,1"),
                },
        },
+       {       /* Handle problems with rebooting on the iMac9,1. */
+               .callback = set_pci_reboot,
+               .ident = "Apple iMac9,1",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"),
+               },
+       },
        { }
 };