diff options
author | 2013-01-10 13:13:49 +0100 | |
---|---|---|
committer | 2013-01-26 00:34:21 +0100 | |
commit | 33f767d767e9a684e9cd60704d4c049a2014c8d5 (patch) | |
tree | 22fbc06ee9eb22974955625ffc296b04e35a9090 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.8-rc5 (diff) | |
download | linux-dev-33f767d767e9a684e9cd60704d4c049a2014c8d5.tar.xz linux-dev-33f767d767e9a684e9cd60704d4c049a2014c8d5.zip |
ACPI: Rework acpi_get_child() to be more efficient
Observe that acpi_get_child() doesn't need to use the helper
struct acpi_find_child structure and change it to work without it.
Also, using acpi_get_object_info() to get the output of _ADR for the
given device is overkill, because that function does much more than
just evaluating _ADR (let alone the additional memory allocation
done by it).
Moreover, acpi_get_child() doesn't need to loop any more once it has
found a matching handle, so make it stop in that case. To prevent
the results from changing, make it use do_acpi_find_child() as
a post-order callback.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions