diff options
author | Len Brown <len.brown@intel.com> | 2012-09-22 22:52:17 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-09-22 22:52:17 -0400 |
commit | 39a55ff2c34a11ab9bbc8ba6f4dfb5d366cb2532 (patch) | |
tree | 31dc69972fbf39a32d3fc669f272898f6a710e3d /tools | |
parent | 981efe9ab9e91e13ec75836300515428a30017df (diff) |
tools/power/acpi/acpidump: version 20071116
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/acpi/acpidump.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/power/acpi/acpidump.c b/tools/power/acpi/acpidump.c index 8e5e19451ce1..a63dee960311 100644 --- a/tools/power/acpi/acpidump.c +++ b/tools/power/acpi/acpidump.c | |||
@@ -540,8 +540,11 @@ int main(int argc, char **argv) | |||
540 | if (connect) { | 540 | if (connect) { |
541 | lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET); | 541 | lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET); |
542 | } | 542 | } |
543 | if (!acpi_dump_XSDT(fd, &rsdpx)) | 543 | if (rsdpx.revision > 1 && rsdpx.xsdt_physical_address) { |
544 | goto not_found; | 544 | /* ACPIDUMP uses xsdt table */ |
545 | if (!acpi_dump_XSDT(fd, &rsdpx)) | ||
546 | goto not_found; | ||
547 | } | ||
545 | if (!acpi_dump_RSDT(fd, &rsdpx)) | 548 | if (!acpi_dump_RSDT(fd, &rsdpx)) |
546 | goto not_found; | 549 | goto not_found; |
547 | if (connect) { | 550 | if (connect) { |