[PATCH] Remove 9 second reboot delay on Lenovo T400/T500

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please consider this patch. Let me know if you would like me to change
anything or if you don't agree with it. It applies cleanly to 2.6.35-rc5.

The Lenovo T400 and T500 have an annoying 9 second delay when
rebooting, unless reboot=pci is passed to the kernel command line.
This delay happens from at least kernel 2.6.20.

Make this change permanent by hardcoding the Tx00 on the
arch/kernel/reboot.c pci quirks table.

Signed-off-by: Pedro Ribeiro <pedrib@xxxxxxxxx>

diff -uprN linux-2.6.35-rc5-old/arch/x86/kernel/reboot.c linux-2.6.35-rc5/arch/x86/kernel/reboot.c
--- linux-2.6.35-rc5-old/arch/x86/kernel/reboot.c	2010-07-14 14:11:46.545272332 +0100
+++ linux-2.6.35-rc5/arch/x86/kernel/reboot.c	2010-07-14 14:14:06.943272338 +0100
@@ -477,6 +477,22 @@ static struct dmi_system_id __initdata p
 			DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"),
 		},
 	},
+	{	/* Solves the 9 second delay when rebooting with the T400 */
+		.callback = set_pci_reboot,
+		.ident = "Lenovo ThinkPad T400",
+		.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		     DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T400"),
+		},
+	},
+	{	/* Solves the 9 second delay when rebooting with the T500 */
+		.callback = set_pci_reboot,
+		.ident = "Lenovo ThinkPad T500",
+		.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		     DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T500"),
+		},
+	},
 	{ }
 };
 

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux