aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-13 20:06:18 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-20 20:28:48 +0200
commitf5122be80daad8e53e6876add5ccbf9db7ca809c (patch)
treee97bf7514f005eb107d1faa1f0f22e4a14de6059 /tools/perf/scripts/python/libxed.py
parentd21b57003041a5a5d28933fd2dfd1c5183fb23af (diff)
ACPI: glue: Introduce acpi_dev_has_children()
Define acpi_dev_has_children() as a wrapper around acpi_dev_for_each_child() and use it to check if the given ACPI device has any children instead of checking the children list head in struct acpi_device. This will help to eliminate the children list head from struct acpi_device as it is redundant and it is used in questionable ways in some places (in particular, locking is needed for walking the list pointed to it safely, but it is often missing). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions