From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiang Liu Subject: [PATCH v3, part4 19/39] mm/hexagon: prepare for removing num_physpages and simplify mem_init() Date: Tue, 26 Mar 2013 23:54:38 +0800 Message-ID: <1364313298-17336-20-git-send-email-jiang.liu@huawei.com> References: <1364313298-17336-1-git-send-email-jiang.liu@huawei.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=+a2JPXxLjO0nwFeCx2yTpe1Eu81pfcdBdDdeeLGyem8=; b=KO1JEWPbm5wtuQp+0JNbucPFJ/I81Eo1LUic3kUb2jxd3zoC8vlURD0xXKXfTLjACE EZLDWP+ykPsWaXXdqf/WBL3WAJlvSW4X+SMUFiii6OVnUUWl8LJoE3XQ97jswI8d+fjy A8awv+H+Ju1Og8RCAms/jI4wscLRsBSzJca329h30ZzYv9tdguHFc8LHuwZhHsE7hMbL dPqptYvcLnNwH9FNFfJjjF2F1IO/2IzSv+WDYQFAl4++69qaSxWPXzXlACXTUFCTmA9p omtOyq4AcqKYmm1wpxJlAgz1wiL7ozIQYZisLymMrSLWsWzbg4RpVXvDJn4ACeeQTIJJ QZ8Q== In-Reply-To: <1364313298-17336-1-git-send-email-jiang.liu@huawei.com> Sender: owner-linux-mm@kvack.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andrew Morton , David Rientjes Cc: Jiang Liu , Wen Congyang , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , James Bottomley , Sergei Shtylyov , David Howells , Mark Salter , Jianguo Wu , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Kuo , linux-hexagon@vger.kernel.org Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Kuo Cc: linux-hexagon@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Hi all, Sorry for my mistake that my previous patch series has been screwed up. So I regenerate a third version and also set up a git tree at: git://github.com/jiangliu/linux.git mem_init Any help to review and test are welcomed! Regards! Gerry --- arch/hexagon/mm/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c index c048d06e..c0f0781 100644 --- a/arch/hexagon/mm/init.c +++ b/arch/hexagon/mm/init.c @@ -70,9 +70,8 @@ unsigned long long kmap_generation; void __init mem_init(void) { free_all_bootmem(); - num_physpages = bootmem_lastpg; /* seriously, what? */ - printk(KERN_INFO "totalram_pages = %ld\n", totalram_pages); + mem_init_print_info(NULL); /* * To-Do: someone somewhere should wipe out the bootmem map -- 1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org