]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ACPI: change arguments to internal acpi_find_dsd()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 23 Jun 2022 00:17:14 +0000 (00:17 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 18 Jul 2022 00:43:32 +0000 (00:43 +0000)
commite4d7f82bf50ae5954e59e63a8bf423b6727a7884
tree4555057d8d7f734a707cf22d3af4078fe42ffaca
parent67c01d848bf71c49bcda49b02a3fd3dd20f07797
ACPI: change arguments to internal acpi_find_dsd()

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
ended up with a bad bus, dev combination making the old version fail.

Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D35558

(cherry picked from commit 945eaca155fc0d48da8d11fc41b8b00f17254d90)
sys/dev/acpica/acpi.c