NUMA-Q: allocate pgdats later in boot
PATCH 4/9 NUMA-Q: allocate pgdats later in boot
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(-)
arch/i386/mm/discontig.c +1 -1
@@ -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