794da6de6892c3ecf631a15a419de33427ad4455
[pandora-kernel.git] / arch / x86 / include / asm / numa_64.h
1 #ifndef _ASM_X86_NUMA_64_H
2 #define _ASM_X86_NUMA_64_H
3
4 #include <linux/nodemask.h>
5
6 #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
7
8 extern int numa_off;
9
10 extern unsigned long numa_free_all_bootmem(void);
11
12 #ifdef CONFIG_NUMA
13 /*
14  * Too small node sizes may confuse the VM badly. Usually they
15  * result from BIOS bugs. So dont recognize nodes as standalone
16  * NUMA entities that have less than this amount of RAM listed:
17  */
18 #define NODE_MIN_SIZE (4*1024*1024)
19
20 extern nodemask_t numa_nodes_parsed __initdata;
21
22 extern int __init numa_add_memblk(int nodeid, u64 start, u64 end);
23 extern void __init numa_set_distance(int from, int to, int distance);
24
25 #ifdef CONFIG_NUMA_EMU
26 #define FAKE_NODE_MIN_SIZE      ((u64)32 << 20)
27 #define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL))
28 void numa_emu_cmdline(char *);
29 #endif /* CONFIG_NUMA_EMU */
30 #endif
31
32 #endif /* _ASM_X86_NUMA_64_H */