linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: print cma-reserved pages from show_mem
@ 2015-02-04 23:22 Gregory Fong
  2015-02-06  0:41 ` Laura Abbott
  0 siblings, 1 reply; 21+ messages in thread
From: Gregory Fong @ 2015-02-04 23:22 UTC (permalink / raw)
  To: linux-arm-kernel

Add cma reserved information to the ARM-specific show_mem.  It was
added to the generic implementation by commit
49abd8c28046adf77c5ce1949549aa64d7221881 "lib/show_mem.c: add cma
reserved information".

Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
---
 arch/arm/mm/init.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 2495c8c..da77507 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -22,6 +22,7 @@
 #include <linux/memblock.h>
 #include <linux/dma-contiguous.h>
 #include <linux/sizes.h>
+#include <linux/cma.h>
 
 #include <asm/cp15.h>
 #include <asm/mach-types.h>
@@ -130,6 +131,9 @@ void show_mem(unsigned int filter)
 	printk("%d pages of RAM\n", total);
 	printk("%d free pages\n", free);
 	printk("%d reserved pages\n", reserved);
+#ifdef CONFIG_CMA
+	printk("%lu cma reserved pages\n", totalcma_pages);
+#endif
 	printk("%d slab pages\n", slab);
 	printk("%d pages shared\n", shared);
 	printk("%d pages swap cached\n", cached);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-04-13 12:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 23:22 [PATCH] ARM: print cma-reserved pages from show_mem Gregory Fong
2015-02-06  0:41 ` Laura Abbott
2015-02-06 21:14   ` Gregory Fong
2015-02-06 21:41     ` Laura Abbott
2015-02-09 19:55       ` Gregory Fong
2015-02-10 11:32         ` Russell King - ARM Linux
2015-03-23  9:08           ` Gregory Fong
2015-03-25 11:49             ` Mel Gorman
2015-03-26 11:46             ` Russell King - ARM Linux
2015-03-26 12:30               ` Mel Gorman
2015-03-26 13:22                 ` Russell King - ARM Linux
2015-03-26 13:47                   ` Mel Gorman
2015-04-10  4:36                 ` Gregory Fong
2015-04-10  5:18                   ` Wang, Yalin
2015-04-10 11:24                     ` Russell King - ARM Linux
2015-04-13  1:09                       ` Gregory Fong
2015-04-13  1:21                         ` Gregory Fong
2015-04-13  9:56                           ` Russell King - ARM Linux
2015-04-13 10:04                             ` Mel Gorman
2015-04-13 10:05                               ` Russell King - ARM Linux
2015-04-13 12:29                                 ` Gregory Fong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).