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
F170613316: D35558.id107267.diff
Sat, Sep 5, 3:43 PM
F170514941: D35558.id107475.diff
Sat, Sep 5, 4:44 AM
F170453924: D35558.id107475.diff
Fri, Sep 4, 9:56 PM
Unknown Object (File)
Thu, Sep 3, 12:23 PM
Unknown Object (File)
Thu, Sep 3, 11:20 AM
Unknown Object (File)
Thu, Sep 3, 7:21 AM
Unknown Object (File)
Wed, Sep 2, 8:57 PM
Unknown Object (File)
Wed, Sep 2, 10:39 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable