ACPI: Make acpi_os_map_memory() avoid creating unnecessary mappings
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Feb 2011 22:38:05 +0000 (23:38 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 24 Feb 2011 18:58:41 +0000 (19:58 +0100)
commit7ffd0443f2502478545e23e194b7eb8e16376072
tree467a47d0d8b9ce4de3c95aa11d25b8c9b5ce05a1
parent7fe135dc058faea0ce319a03e3b6f98c5049955c
ACPI: Make acpi_os_map_memory() avoid creating unnecessary mappings

Modify acpi_os_map_memory() so that it doesn't call acpi_os_ioremap()
unconditionally every time it is executed (except when
acpi_gbl_permanent_mmap is unset), which pretty much defeats the
purpose of maintaining the list of ACPI iomaps in osl.c.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/osl.c