Skip to content

Commit

Permalink
tools/power/acpi/acpidump: version 20071116
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Len Brown committed Sep 23, 2012
1 parent 981efe9 commit 39a55ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/power/acpi/acpidump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39a55ff

Please sign in to comment.