[Linaro-acpi] [PATCH 04/28] acpi: add arm to the platforms that use ioremap

al.stone at linaro.org al.stone at linaro.org
Tue Nov 11 02:46:51 UTC 2014

From: Graeme Gregory <graeme.gregory at linaro.org>

Now with the base changes to the arm memory mapping it is safe
to convert to using ioremap to map in the tables.

Signed-off-by: Al Stone <al.stone at linaro.org>
Signed-off-by: Graeme Gregory <graeme.gregory at linaro.org>
 drivers/acpi/osl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 9964f70..5c480d5 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -336,11 +336,11 @@ acpi_map_lookup_virt(void __iomem *virt, acpi_size size)
 	return NULL;
-#ifndef CONFIG_IA64
-#define should_use_kmap(pfn)   page_is_ram(pfn)
+#if defined(CONFIG_IA64) || defined(CONFIG_ARM) || defined(CONFIG_ARM64)
 /* ioremap will take care of cache attributes */
 #define should_use_kmap(pfn)   0
+#define should_use_kmap(pfn)   page_is_ram(pfn)
 static void __iomem *acpi_map(acpi_physical_address pg_off, unsigned long pg_sz)

More information about the Linaro-acpi mailing list