Page MenuHomeFreeBSD

ACPI: change arguments to internal acpi_find_dsd()
ClosedPublic

Authored by bz on Jun 23 2022, 12:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 26 2024, 11:39 PM
Unknown Object (File)
Oct 14 2024, 2:17 AM
Unknown Object (File)
Oct 2 2024, 10:52 PM
Unknown Object (File)
Sep 22 2024, 2:12 PM
Unknown Object (File)
Sep 20 2024, 3:03 AM
Unknown Object (File)
Sep 17 2024, 5:21 PM
Unknown Object (File)
Sep 17 2024, 4:00 PM
Unknown Object (File)
Sep 16 2024, 1:24 AM

Details

Summary

acpi_find_dsd() is not a bus function and we only need the acpi_device (ad).
The only caller has already looked up the ad (from ivars) for us.
Directly pass the ad to acpi_find_dsd() instead of bus, dev and remove
the extra call to device_get_ivars(); the changed argument also means we
now call AcpiEvaluateObject directly on the handle.

This optimisation was done a while ago while debugging a driver which
passed a bad bus, dev combination making the old version fail.

MFC after: 2 weeks

Test Plan

Follow-up to b91fc6c43a81d / D31596

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46071
Build 42960: arc lint + arc unit