bootmem, x86: Fix 32bit numa system without RAM on node 0
commitaa235fc712f379d4194cff9217f07026c452c141
authorYinghai Lu <yinghai@kernel.org>
Thu, 1 Apr 2010 03:45:27 +0000 (31 20:45 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 1 Apr 2010 21:41:19 +0000 (1 14:41 -0700)
tree9807da3453cfb9592c1a45f6fc327b5d227672d5
parent337998587f802535896e9ed16d19f97915ccd368
bootmem, x86: Fix 32bit numa system without RAM on node 0

When 32bit numa is used, free_all_bootmem() will still only go over with
node id 0.

If node 0 doesn't have RAM installed, the lowest populated node
becomes low RAM.

This one fixes BOOTMEM path by iterating over the bdata_list.

-v3: add more comments, and fix bootmem path too.
-v4: seperate from one big patch

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4BB416D7.6090203@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
mm/bootmem.c