| Joe Perches | cb046ee | 2008-03-23 01:02:55 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X8664_NUMA_H | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #define _ASM_X8664_NUMA_H 1 | 
|  | 3 |  | 
|  | 4 | #include <linux/nodemask.h> | 
| Andrew Morton | afc5465 | 2007-10-17 18:04:32 +0200 | [diff] [blame] | 5 | #include <asm/apicdef.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 |  | 
| Andi Kleen | abe059e | 2006-03-25 16:29:12 +0100 | [diff] [blame] | 7 | struct bootnode { | 
| Joe Perches | cb046ee | 2008-03-23 01:02:55 -0700 | [diff] [blame] | 8 | u64 start; | 
|  | 9 | u64 end; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | }; | 
|  | 11 |  | 
| Suresh Siddha | 6ec6e0d | 2008-03-25 10:14:35 -0700 | [diff] [blame] | 12 | extern int compute_hash_shift(struct bootnode *nodes, int numblks, | 
|  | 13 | int *nodeids); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 |  | 
|  | 15 | #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT)) | 
|  | 16 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | extern void numa_init_array(void); | 
|  | 18 | extern int numa_off; | 
|  | 19 |  | 
| Andi Kleen | 68a3a7f | 2006-04-07 19:49:18 +0200 | [diff] [blame] | 20 | extern void srat_reserve_add_area(int nodeid); | 
|  | 21 | extern int hotadd_percent; | 
| Andi Kleen | 69d81fc | 2005-11-05 17:25:53 +0100 | [diff] [blame] | 22 |  | 
| travis@sgi.com | 4323838 | 2008-01-30 13:33:25 +0100 | [diff] [blame] | 23 | extern s16 apicid_to_node[MAX_LOCAL_APIC]; | 
| Thomas Gleixner | aaa64e0 | 2008-01-30 13:30:17 +0100 | [diff] [blame] | 24 |  | 
| Thomas Gleixner | aaa64e0 | 2008-01-30 13:30:17 +0100 | [diff] [blame] | 25 | extern unsigned long numa_free_all_bootmem(void); | 
|  | 26 | extern void setup_node_bootmem(int nodeid, unsigned long start, | 
|  | 27 | unsigned long end); | 
|  | 28 |  | 
| Ravikiran Thirumalai | 05b3cbd | 2006-01-11 22:45:36 +0100 | [diff] [blame] | 29 | #ifdef CONFIG_NUMA | 
|  | 30 | extern void __init init_cpu_to_node(void); | 
| Mike Travis | 23ca4bb | 2008-05-12 21:21:12 +0200 | [diff] [blame] | 31 | extern void __cpuinit numa_set_node(int cpu, int node); | 
|  | 32 | extern void __cpuinit numa_clear_node(int cpu); | 
|  | 33 | extern void __cpuinit numa_add_cpu(int cpu); | 
|  | 34 | extern void __cpuinit numa_remove_cpu(int cpu); | 
| Ravikiran Thirumalai | 05b3cbd | 2006-01-11 22:45:36 +0100 | [diff] [blame] | 35 | #else | 
| Mike Travis | 23ca4bb | 2008-05-12 21:21:12 +0200 | [diff] [blame] | 36 | static inline void init_cpu_to_node(void)		{ } | 
|  | 37 | static inline void numa_set_node(int cpu, int node)	{ } | 
|  | 38 | static inline void numa_clear_node(int cpu)		{ } | 
|  | 39 | static inline void numa_add_cpu(int cpu, int node)	{ } | 
|  | 40 | static inline void numa_remove_cpu(int cpu)		{ } | 
| Ravikiran Thirumalai | 05b3cbd | 2006-01-11 22:45:36 +0100 | [diff] [blame] | 41 | #endif | 
| Andi Kleen | 0b07e98 | 2005-09-12 18:49:24 +0200 | [diff] [blame] | 42 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | #endif |