From: Catalin Marinas Date: Tue, 4 May 2010 16:27:43 +0000 (+0100) Subject: ARM: 6093/1: Fix kernel memory printing for sparsemem X-Git-Tag: v2.6.34-rc7~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea056df7965fc46cfff28fd3808bf3ada23d5059;p=pandora-kernel.git ARM: 6093/1: Fix kernel memory printing for sparsemem The show_mem() and mem_init() function are assuming that the page map is contiguous and calculates the start and end page of a bank using (map + pfn). This fails with SPARSEMEM where pfn_to_page() must be used. Tested-by: Will Deacon Tested-by: Marek Vasut Signed-off-by: Catalin Marinas Signed-off-by: Russell King --- Reading git-diff-tree failed