diff options
-rw-r--r-- | include/linux/memblock.h | 8 | ||||
-rw-r--r-- | mm/memblock.c | 5 |
2 files changed, 8 insertions, 5 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 |
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 | ||