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 /mm | |
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 'mm')
-rw-r--r-- | mm/memblock.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index d0506183c5b1..4b80f6fae091 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -898,11 +898,8 @@ static void __init_memblock memblock_dump(struct memblock_type *type, char *name | |||
898 | } | 898 | } |
899 | } | 899 | } |
900 | 900 | ||
901 | void __init_memblock memblock_dump_all(void) | 901 | void __init_memblock __memblock_dump_all(void) |
902 | { | 902 | { |
903 | if (!memblock_debug) | ||
904 | return; | ||
905 | |||
906 | pr_info("MEMBLOCK configuration:\n"); | 903 | pr_info("MEMBLOCK configuration:\n"); |
907 | pr_info(" memory size = 0x%llx\n", (unsigned long long)memblock.memory_size); | 904 | pr_info(" memory size = 0x%llx\n", (unsigned long long)memblock.memory_size); |
908 | 905 | ||