lkml.org 
[lkml]   [2002]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[4/9] NUMA-Q: allocate pgdats later in boot
From
Date
In order for allocate_pgdat() to manipulate the virtual memory regions,
it must be called only after the tables describing them are initialized.

discontig.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -urpN 02_early_decls/arch/i386/mm/discontig.c 03_late_alloc/arch/i386/mm/discontig.c
--- 02_early_decls/arch/i386/mm/discontig.c 2002-11-11 16:27:50.000000000 -0800
+++ 03_late_alloc/arch/i386/mm/discontig.c 2002-11-11 16:31:27.000000000 -0800
@@ -196,9 +196,9 @@ unsigned long __init setup_memory(void)
printk("Low memory ends at vaddr %08lx\n",
(ulong) pfn_to_kaddr(max_low_pfn));
for (nid = 0; nid < numnodes; nid++) {
- allocate_pgdat(nid);
node_remap_start_vaddr[nid] = pfn_to_kaddr(
highstart_pfn - node_remap_offset[nid]);
+ allocate_pgdat(nid);
printk ("node %d will remap to vaddr %08lx - %08lx\n", nid,
(ulong) node_remap_start_vaddr[nid],
(ulong) pfn_to_kaddr(highstart_pfn
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:30    [from the cache]
©2003-2011 Jasper Spaans