Skip to content

Commit f4334ef

Browse files
committed
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: Rafael J. Wysocki <[email protected]>
1 parent b8fcd0e commit f4334ef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/acpi/osl.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,9 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
518518
mutex_unlock(&acpi_ioremap_lock);
519519
return;
520520
}
521-
if (acpi_os_drop_map_ref(map, false))
522-
map = NULL;
521+
acpi_os_drop_map_ref(map, true);
523522

524523
mutex_unlock(&acpi_ioremap_lock);
525-
526-
acpi_os_map_cleanup(map);
527524
}
528525
EXPORT_SYMBOL(acpi_os_unmap_generic_address);
529526

0 commit comments

Comments
 (0)