Commit e252675f authored by Jan Beulich's avatar Jan Beulich Committed by Len Brown

ACPI: consistently use should_use_kmap()

... so that acpi_unmap()'s behavior gets in sync with acpi_map()'s.
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 89e96ada
...@@ -347,7 +347,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr) ...@@ -347,7 +347,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr)
unsigned long pfn; unsigned long pfn;
pfn = pg_off >> PAGE_SHIFT; pfn = pg_off >> PAGE_SHIFT;
if (page_is_ram(pfn)) if (should_use_kmap(pfn))
kunmap(pfn_to_page(pfn)); kunmap(pfn_to_page(pfn));
else else
iounmap(vaddr); iounmap(vaddr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment