Merge branch 'akpm'
[linux-2.6/next.git] / arch / x86 / mm / numa_64.c
blobdd27f401f0a03a3c62268c2097f363178767d795
1 /*
2 * Generic VM initialization for x86-64 NUMA setups.
3 * Copyright 2002,2003 Andi Kleen, SuSE Labs.
4 */
5 #include <linux/bootmem.h>
7 #include "numa_internal.h"
9 void __init initmem_init(void)
11 x86_numa_init();
14 unsigned long __init numa_free_all_bootmem(void)
16 unsigned long pages = 0;
17 int i;
19 for_each_online_node(i)
20 pages += free_all_bootmem_node(NODE_DATA(i));
22 pages += free_all_memory_core_early(MAX_NUMNODES);
24 return pages;