From: Keir Fraser Date: Fri, 12 Oct 2007 14:37:13 +0000 (+0100) Subject: x86: Fix acpi_parse_fadt() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14847^2~48 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e18c67eaf44193ffef416a192553220e7531e9e1;p=xen.git x86: Fix acpi_parse_fadt() Prevent returning early, so that other information gathered in this function will not occasionally be missing for the consumer(s). Signed-off-by: Jan Beulich --- diff --git a/xen/arch/x86/acpi/boot.c b/xen/arch/x86/acpi/boot.c index 5973fd53eb..cbaa5ecbe7 100644 --- a/xen/arch/x86/acpi/boot.c +++ b/xen/arch/x86/acpi/boot.c @@ -491,11 +491,9 @@ static int __init acpi_parse_fadt(unsigned long phys, unsigned long size) /* detect the location of the ACPI PM Timer */ if (fadt->revision >= FADT2_REVISION_ID) { /* FADT rev. 2 */ - if (fadt->xpm_tmr_blk.address_space_id != + if (fadt->xpm_tmr_blk.address_space_id == ACPI_ADR_SPACE_SYSTEM_IO) - return 0; - - pmtmr_ioport = fadt->xpm_tmr_blk.address; + 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