tools/power/acpi/acpidump: version 20071116
authorLen Brown <len.brown@intel.com>
Sun, 23 Sep 2012 02:52:17 +0000 (22:52 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 23 Sep 2012 02:52:17 +0000 (22:52 -0400)
This is unchanged version 20071116, plus a small bit in
DEFINE_ALTERNATE_TYPES to enable building with latest kernel headers.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/acpi/acpidump.c

index 8e5e19451ce1d3208812e628774e3a498c5defb1..a63dee960311da84413ea4179bf7322c59da92e1 100644 (file)
@@ -540,8 +540,11 @@ int main(int argc, char **argv)
        if (connect) {
                lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET);
        }
-       if (!acpi_dump_XSDT(fd, &rsdpx))
-               goto not_found;
+       if (rsdpx.revision > 1 && rsdpx.xsdt_physical_address) {
+               /* ACPIDUMP uses xsdt table */
+               if (!acpi_dump_XSDT(fd, &rsdpx))
+                       goto not_found;
+       }
        if (!acpi_dump_RSDT(fd, &rsdpx))
                goto not_found;
        if (connect) {