Skip to content

Commit

Permalink
ACPI: OSL: Use deferred unmapping in acpi_os_unmap_generic_address()
Browse files Browse the repository at this point in the history
There is no reason (knwon to me) why any of the existing users of
acpi_os_unmap_generic_address() would need to wait for the unused
memory mappings left by it to actually go away, so use the deferred
unmapping of ACPI memory introduced previously in that function.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Jul 27, 2020
1 parent b8fcd0e commit f4334ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,9 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
mutex_unlock(&acpi_ioremap_lock);
return;
}
if (acpi_os_drop_map_ref(map, false))
map = NULL;
acpi_os_drop_map_ref(map, true);

mutex_unlock(&acpi_ioremap_lock);

acpi_os_map_cleanup(map);
}
EXPORT_SYMBOL(acpi_os_unmap_generic_address);

Expand Down

0 comments on commit f4334ef

Please sign in to comment.