aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2024-04-30 18:02:20 +0200
committerRafael J. Wysocki <[email protected]>2024-04-30 21:32:06 +0200
commitd4aa921eb85a74bf0502eff64f0b9e06fe17081b (patch)
treef10d871c0850a18dc14601af4217129de71e1468 /tools/perf/scripts/python/syscall-counts.py
parent829b75d4831c487c4408f0b7fc22e74deb0efa3c (diff)
ACPI: scan: Avoid enumerating devices with clearly invalid _STA values
The return value of _STA with the "present" bit unset and the "enabled" bit set is clearly invalid as per the ACPI specification, Section 6.3.7 "_STA (Device Status)", so make the ACPI device enumeration code disregard devices with such _STA return values. Also, because this implies that status.enabled will only be set if status.present is set too, acpi_device_is_enabled() can be modified to simply return the value of the former. Link: https://uefi.org/specs/ACPI/6.5/06_Device_Configuration.html#sta-device-status Link: https://lore.kernel.org/linux-acpi/[email protected]/ Suggested-by: Salil Mehta <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions