summaryrefslogtreecommitdiff
path: root/include/linux/memblock.h
diff options
context:
space:
mode:
authorSusheel Khiani <skhiani@codeaurora.org>2015-09-08 12:34:11 +0530
committerKyle Yan <kyan@codeaurora.org>2016-06-29 15:01:29 -0700
commited6ef4b17077950c6136f7af0d4c8daf236e1993 (patch)
treee1e4de7629a090b45077cc2e6c5581223d2990f1 /include/linux/memblock.h
parentfbcc212e73103650d7d3b20499749ec129d5c485 (diff)
ARM: mm: Update the kernel log messages
After reclaiming vmalloc and adjusting lowmem, the two regions are no longer contiguous. Update the messages printed during bootup to list all regions corresponding to low memory and vmalloc respectively. Change-Id: Ib3e25b530b3dfbd1f9796cdc580fb79da484e850 Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r--include/linux/memblock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index 3d28c3a18b95..51ee5ddfa4fb 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -394,6 +394,11 @@ static inline unsigned long memblock_region_reserved_end_pfn(const struct memblo
region < (memblock.memblock_type.regions + memblock.memblock_type.cnt); \
region++)
+#define for_each_memblock_rev(memblock_type, region) \
+ for (region = memblock.memblock_type.regions + \
+ memblock.memblock_type.cnt - 1; \
+ region >= memblock.memblock_type.regions; \
+ region--)
#ifdef CONFIG_ARCH_DISCARD_MEMBLOCK
#define __init_memblock __meminit