From: David Shaohua Li Date: Wed, 21 Sep 2005 05:35:00 +0000 (-0400) Subject: [ACPI] properly detect pmtimer on ASUS a8v motherboard X-Git-Tag: v2.6.15-rc5~55^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6e87b4bfe3720b4308a8e669078d9be58bc9780;p=platform%2Fkernel%2Flinux-3.10.git [ACPI] properly detect pmtimer on ASUS a8v motherboard Handle FADT 2.0 xpmtmr address 0 case. http://bugzilla.kernel.org/show_bug.cgi?id=5283 Signed-off-by: Shaohua Li Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/arch/i386/kernel/acpi/boot.c b/arch/i386/kernel/acpi/boot.c index 76b1135d..447fa9e 100644 --- a/arch/i386/kernel/acpi/boot.c +++ b/arch/i386/kernel/acpi/boot.c @@ -638,6 +638,13 @@ static int __init acpi_parse_fadt(unsigned long phys, unsigned long size) return 0; pmtmr_ioport = fadt->xpm_tmr_blk.address; + /* + * "X" fields are optional extensions to the original V1.0 + * fields, so we must selectively expand V1.0 fields if the + * corresponding X field is zero. + */ + if (!pmtmr_ioport) + pmtmr_ioport = fadt->V1_pm_tmr_blk; } else { /* FADT rev. 1 */ pmtmr_ioport = fadt->V1_pm_tmr_blk;