summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2015-03-24 10:02:35 -0400
committerWill Deacon <will.deacon@arm.com>2015-03-25 07:49:30 -0400
commitaafc65c731fe2e6020850cd87ba69e96aaf38649 (patch)
tree04faa4108c4abb210aedbd30a3917fa8751fbacc /drivers/acpi/osl.c
parent07f438df22886432ff50772446768f65fbbf3ee0 (diff)
ACPI: add arm64 to the platforms that use ioremap
Now with the base changes to the arm memory mapping it is safe to convert to using ioremap to map in the tables after acpi_gbl_permanent_mmap is set. CC: Rafael J Wysocki <rjw@rjwysocki.net> Tested-by: Robert Richter <rrichter@cavium.com> Tested-by: Timur Tabi <timur@codeaurora.org> Acked-by: Robert Richter <rrichter@cavium.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Al Stone <al.stone@linaro.org> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index f9eeae871593..39748bb3a543 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)
336 return NULL; 336 return NULL;
337} 337}
338 338
339#ifndef CONFIG_IA64 339#if defined(CONFIG_IA64) || defined(CONFIG_ARM64)
340#define should_use_kmap(pfn) page_is_ram(pfn)
341#else
342/* ioremap will take care of cache attributes */ 340/* ioremap will take care of cache attributes */
343#define should_use_kmap(pfn) 0 341#define should_use_kmap(pfn) 0
342#else
343#define should_use_kmap(pfn) page_is_ram(pfn)
344#endif 344#endif
345 345
346static void __iomem *acpi_map(acpi_physical_address pg_off, unsigned long pg_sz) 346static void __iomem *acpi_map(acpi_physical_address pg_off, unsigned long pg_sz)