commit | ea056df7965fc46cfff28fd3808bf3ada23d5059 | [log] [tgz] |
---|---|---|
author | Catalin Marinas <catalin.marinas@arm.com> | Tue May 04 17:27:43 2010 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Tue May 04 17:31:03 2010 +0100 |
tree | 4bc56774dfc4217db45ad304a0463532d6ff4808 | |
parent | ab92e74f799a1cbc6b3c9bf90ed05403689ddecc [diff] |
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 <Will.Deacon@arm.com> Tested-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>