e3ee503a0a21aa8d3a9ae9afdf749039c89af850
[linux-2.6.git] / include / asm-x86_64 / numa.h
1 #ifndef _ASM_X8664_NUMA_H 
2 #define _ASM_X8664_NUMA_H 1
3
4 #include <linux/nodemask.h>
5
6 #define MAXNODE 8 
7 #define NODEMASK 0xff
8
9 struct node { 
10         u64 start,end; 
11 };
12
13 #define for_all_nodes(x) for ((x) = 0; (x) < numnodes; (x)++) \
14                                 if (node_online(x))
15
16 extern int compute_hash_shift(struct node *nodes);
17
18 #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
19
20 extern void numa_add_cpu(int cpu);
21 extern void numa_init_array(void);
22
23 #endif