From: Jan Beulich Date: Fri, 24 Feb 2012 11:41:53 +0000 (+0000) Subject: ACPI: consistently use should_use_kmap() X-Git-Tag: MMI-PSA29.97-13-9~16866^2~3^7~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e252675fb722d4a307cc380a06a905f03cf9951c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ACPI: consistently use should_use_kmap() ... so that acpi_unmap()'s behavior gets in sync with acpi_map()'s. Signed-off-by: Jan Beulich Signed-off-by: Len Brown --- diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 412a1e04a922..5aef087d42d0 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -347,7 +347,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr) unsigned long pfn; pfn = pg_off >> PAGE_SHIFT; - if (page_is_ram(pfn)) + if (should_use_kmap(pfn)) kunmap(pfn_to_page(pfn)); else iounmap(vaddr);