[ARM] 3927/1: Allow show_mem() to work with holes in memory map.
authorRay Lehtiniemi <rayl@com.rmk.(none)>
Tue, 7 Nov 2006 02:19:15 +0000 (03:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 7 Nov 2006 19:39:00 +0000 (19:39 +0000)
commit5e7098275094ec405f2b19285ec0c38aead42d53
tree1d0ba36c62a1d8db827457c656129a50ce569e50
parent6d15cb42fe4f8c07c80c9d49db721fcfe2da0e90
[ARM] 3927/1: Allow show_mem() to work with holes in memory map.

show_mem() was not correctly handling holes in the memory
map.  It was treating the freed sections of the map as
though they contained valid struct page entries.  This
could cause incorrect debugging output or even a kernel
panic.

This patch keeps the struct meminfo around after system
initialization so that show_mem() can use it when
scanning memory.  show_mem() now walks over each bank
of each online node, rather than assuming that each node
contains a single contiguous bank.

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c