]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: provide runtime hook for ioremap/iounmap
authorRob Herring <rob.herring@calxeda.com>
Fri, 10 Feb 2012 23:05:13 +0000 (17:05 -0600)
committerRob Herring <rob.herring@calxeda.com>
Wed, 7 Mar 2012 03:22:01 +0000 (21:22 -0600)
commit316dcb2d932e711b69d9d87e792244c3ba875e66
tree046a63d0c5db517529e86c914bb2fb493a4adee6
parentf284940ec4fea41a4c4c2ddea3bcbf2fe4af3018
ARM: provide runtime hook for ioremap/iounmap

We have compile time over-ride of ioremap and iounmap, but an run-time
override is needed for multi-platform builds. This adds an extra function
pointer check, but ioremap is not peformance critical. The option for
compile time selection remains.

The caller variant is used here to provide correct caller information as
ARM can only support level 0 for __builtin_return_address.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
arch/arm/include/asm/io.h
arch/arm/mm/ioremap.c