]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ARM: 6093/1: Fix kernel memory printing for sparsemem
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 May 2010 16:27:43 +0000 (17:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 4 May 2010 16:31:03 +0000 (17:31 +0100)
commitea056df7965fc46cfff28fd3808bf3ada23d5059
tree4bc56774dfc4217db45ad304a0463532d6ff4808
parentab92e74f799a1cbc6b3c9bf90ed05403689ddecc
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>
arch/arm/mm/init.c