summaryrefslogtreecommitdiffstats
path: root/tools/power/acpi/acpidump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power/acpi/acpidump.c')
-rw-r--r--tools/power/acpi/acpidump.c7
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)
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) {