x86: make sparse mem work in non-NUMA mode
authorShaohua Li <shaohua.li@intel.com>
Tue, 12 May 2009 08:40:00 +0000 (16:40 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 12 May 2009 09:26:35 +0000 (11:26 +0200)
commited077b58f6146684069975122b1728a9d248a501
treec367da4e2c2b5a30c31d4fc3a9531f56fcd53828
parentbf78ad69cd351798b9447a269c6bd41ce1f111f4
x86: make sparse mem work in non-NUMA mode

With sparse memory, holes should not be marked present for memmap.
This patch makes sure sparsemem really works on SMP mode (!NUMA).

[ Impact: use less memory to map fragmented RAM, avoid boot-OOM/crash ]

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
LKML-Reference: <1242117600.22431.0.camel@sli10-desk.sh.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_32.c