Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966958AbbBDXWu (ORCPT ); Wed, 4 Feb 2015 18:22:50 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36713 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965179AbbBDXWt (ORCPT ); Wed, 4 Feb 2015 18:22:49 -0500 From: Gregory Fong To: linux-arm-kernel@lists.infradead.org Cc: f.fainelli@gmail.com, vishnu.ps@samsung.com, Gregory Fong , Russell King , Nicolas Pitre , Kees Cook , Catalin Marinas , Marek Szyprowski , Yalin Wang , Laura Abbott , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ARM: print cma-reserved pages from show_mem Date: Wed, 4 Feb 2015 15:22:43 -0800 Message-Id: <1423092164-9145-1-git-send-email-gregory.0xf0@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 40 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 --- 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 #include #include +#include #include #include @@ -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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/