Commit f4334efb authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI: OSL: Use deferred unmapping in acpi_os_unmap_generic_address()



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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b8fcd0e5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);