Skip to content
Commit 7fe135dc authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI: Avoid walking the list of memory mappings in osl.c twice in a row



Make acpi_os_unmap_generic_address() use acpi_map_lookup() to find
the desired iomap and drop the reference to it directly (and
eventually remove it if necessary) instead of calling
acpi_os_unmap_memory(), which requires us to walk the list of ACPI
iomaps twice in a row (first, to get the virtual address associated
with the iomap and second, to get the iomap itself).

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 7bbb8903
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment