]> 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)
commit92af68b6d9a5a1c25fbc7d6569c9fc356dcd09d1
tree046a63d0c5db517529e86c914bb2fb493a4adee6
parentfd634d266510934a500b4695bb4a14f3ed2e8af3
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