lkml.org 
[lkml]   [2008]   [Jun]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromYinghai Lu <>
Subject[PATCH] x86: set node_remap_size[0] in fallback path
DateSat, 31 May 2008 22:53:47 -0700
otherwise alloc_remap will not get node_mem_map from kva area, and
alloc_node_mem_map has to alloc_bootmem_node get mem_map.
it will use two copies low address...

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

--- a/arch/x86/mm/discontig_32.c	2008-05-31 21:46:14.000000000 -0700
+++ b/arch/x86/mm/discontig_32.c	2008-05-31 21:49:02.000000000 -0700
@@ -124,6 +124,7 @@ int __init get_memcfg_numa_flat(void)
 	node_start_pfn[0] = 0;
 	node_end_pfn[0] = max_pfn;
 	memory_present(0, 0, max_pfn);
+	node_remap_size[0] = node_memmap_size_bytes(0, 0, max_pfn);
 
         /* Indicate there is one node available. */
 	nodes_clear(node_online_map);

\
 
 \ /
  Last update: 2008-06-01 08:01    [from the cache]
©2003-2008