diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-01 01:53:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-03 07:26:25 -0400 |
commit | b66cd7207387b9b428aaf1988e21dd263c6a4928 (patch) | |
tree | 0e2efcfdff95e1d855f7cc163a54b781b2c7eb43 /arch/x86/mm/discontig_32.c | |
parent | ba924c81dd5a7a7fb5ded025af7fdd3b61f8ca67 (diff) |
x86: set node_remap_size[0] in fallback path
... otherwise alloc_remap will not get node_mem_map from kva area, and
alloc_node_mem_map has to alloc_bootmem_node to get mem_map.
It will use two low address copies ...
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/discontig_32.c')
-rw-r--r-- | arch/x86/mm/discontig_32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/discontig_32.c b/arch/x86/mm/discontig_32.c index 922af20d1d29..98b099eeab3a 100644 --- a/arch/x86/mm/discontig_32.c +++ b/arch/x86/mm/discontig_32.c | |||
@@ -124,6 +124,7 @@ int __init get_memcfg_numa_flat(void) | |||
124 | node_start_pfn[0] = 0; | 124 | node_start_pfn[0] = 0; |
125 | node_end_pfn[0] = max_pfn; | 125 | node_end_pfn[0] = max_pfn; |
126 | memory_present(0, 0, max_pfn); | 126 | memory_present(0, 0, max_pfn); |
127 | node_remap_size[0] = node_memmap_size_bytes(0, 0, max_pfn); | ||
127 | 128 | ||
128 | /* Indicate there is one node available. */ | 129 | /* Indicate there is one node available. */ |
129 | nodes_clear(node_online_map); | 130 | nodes_clear(node_online_map); |