ARM: add generic ioremap optimization by reusing static mappings
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 16 Sep 2011 05:14:23 +0000 (01:14 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Sun, 27 Nov 2011 00:21:28 +0000 (19:21 -0500)
commit576d2f2525612ecb5af029a76f21f22a3b82563d
tree81f9564c432ceeb4068dd3a5de204134a32c98f3
parent6ee723a6570a897208b76ab3e9a495e9106b2f8c
ARM: add generic ioremap optimization by reusing static mappings

Now that we have all the static mappings from iotable_init() located
in the vmalloc area, it is trivial to optimize ioremap by reusing those
static mappings when the requested physical area fits in one of them,
and so in a generic way for all platforms.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Tested-by: Jamie Iles <jamie@jamieiles.com>
arch/arm/mm/ioremap.c
arch/arm/mm/mm.h
arch/arm/mm/mmu.c