diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 00:23:41 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 00:23:41 -0500 |
commit | bf3cdeda901c7f42de3cddc8c5aa19f6b8d8f9df (patch) | |
tree | 4f0ebc608a8ea53d723be1695fbc9606a255ae85 /arch/sh/include | |
parent | 1232d88a47626cad13ba82f3a9ea814820bc1c65 (diff) |
sh: wire up vmallocinfo support in ioremap() implementations.
This wires up the caller information for the ioremap VMA, which allows
for more helpful caller tracking via /proc/vmallocinfo. Follows the x86
and powerpc changes of the same nature.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/io.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 512cd3e9d0ca..988c1be58e51 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -233,11 +233,17 @@ unsigned long long poke_real_address_q(unsigned long long addr, | |||
233 | * doesn't exist, so everything must go through page tables. | 233 | * doesn't exist, so everything must go through page tables. |
234 | */ | 234 | */ |
235 | #ifdef CONFIG_MMU | 235 | #ifdef CONFIG_MMU |
236 | void __iomem *__ioremap(unsigned long offset, unsigned long size, | 236 | void __iomem *__ioremap_caller(unsigned long offset, unsigned long size, |
237 | unsigned long flags); | 237 | unsigned long flags, void *caller); |
238 | void __iounmap(void __iomem *addr); | 238 | void __iounmap(void __iomem *addr); |
239 | 239 | ||
240 | static inline void __iomem * | 240 | static inline void __iomem * |
241 | __ioremap(unsigned long offset, unsigned long size, unsigned long flags) | ||
242 | { | ||
243 | return __ioremap_caller(offset, size, flags, __builtin_return_address(0)); | ||
244 | } | ||
245 | |||
246 | static inline void __iomem * | ||
241 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | 247 | __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) |
242 | { | 248 | { |
243 | #if defined(CONFIG_SUPERH32) && !defined(CONFIG_PMB_FIXED) && !defined(CONFIG_PMB) | 249 | #if defined(CONFIG_SUPERH32) && !defined(CONFIG_PMB_FIXED) && !defined(CONFIG_PMB) |