diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-08 13:22:06 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-12-08 13:22:06 -0500 |
commit | 4ff7b82f1e5fc65a7c9512b231b4ea533f28541a (patch) | |
tree | 7251ce5a178add8bacd072d34d232c23c07dd389 /include/linux/memblock.h | |
parent | 9c8c27e2b89b020fd33dd3f2b18405d3f027e6ac (diff) |
memblock: Add __memblock_dump_all()
Add __memblock_dump_all() which dumps memblock configuration whether
memblock_debug is enabled or not.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 2f8e28f859b3..1a3bee78590f 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -129,7 +129,13 @@ int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); | |||
129 | int memblock_is_reserved(phys_addr_t addr); | 129 | int memblock_is_reserved(phys_addr_t addr); |
130 | int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); | 130 | int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); |
131 | 131 | ||
132 | void memblock_dump_all(void); | 132 | extern void __memblock_dump_all(void); |
133 | |||
134 | static inline void memblock_dump_all(void) | ||
135 | { | ||
136 | if (memblock_debug) | ||
137 | __memblock_dump_all(); | ||
138 | } | ||
133 | 139 | ||
134 | /** | 140 | /** |
135 | * memblock_set_current_limit - Set the current allocation limit to allow | 141 | * memblock_set_current_limit - Set the current allocation limit to allow |