diff options
author | Ray Lehtiniemi <rayl@com.rmk.(none)> | 2006-11-07 03:19:15 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-11-07 19:39:00 +0000 |
commit | 5e7098275094ec405f2b19285ec0c38aead42d53 (patch) | |
tree | 1d0ba36c62a1d8db827457c656129a50ce569e50 /kernel/ksysfs.c | |
parent | 6d15cb42fe4f8c07c80c9d49db721fcfe2da0e90 (diff) |
[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>
Diffstat (limited to 'kernel/ksysfs.c')
0 files changed, 0 insertions, 0 deletions