2008-10-23 05:26:29 +00:00
|
|
|
#ifndef _ASM_X86_NUMA_64_H
|
|
|
|
#define _ASM_X86_NUMA_64_H
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#include <linux/nodemask.h>
|
|
|
|
|
2006-03-25 15:29:12 +00:00
|
|
|
struct bootnode {
|
2008-03-23 08:02:55 +00:00
|
|
|
u64 start;
|
|
|
|
u64 end;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
|
|
|
|
|
|
|
|
extern int numa_off;
|
|
|
|
|
2008-01-30 12:30:17 +00:00
|
|
|
extern unsigned long numa_free_all_bootmem(void);
|
|
|
|
extern void setup_node_bootmem(int nodeid, unsigned long start,
|
|
|
|
unsigned long end);
|
|
|
|
|
2006-01-11 21:45:36 +00:00
|
|
|
#ifdef CONFIG_NUMA
|
2009-05-15 20:59:37 +00:00
|
|
|
/*
|
|
|
|
* Too small node sizes may confuse the VM badly. Usually they
|
|
|
|
* result from BIOS bugs. So dont recognize nodes as standalone
|
|
|
|
* NUMA entities that have less than this amount of RAM listed:
|
|
|
|
*/
|
|
|
|
#define NODE_MIN_SIZE (4*1024*1024)
|
|
|
|
|
2011-02-16 11:13:07 +00:00
|
|
|
extern nodemask_t cpu_nodes_parsed __initdata;
|
|
|
|
extern nodemask_t mem_nodes_parsed __initdata;
|
2011-02-16 11:13:07 +00:00
|
|
|
extern struct bootnode numa_nodes[MAX_NUMNODES] __initdata;
|
2011-02-16 11:13:07 +00:00
|
|
|
|
2011-01-23 13:37:39 +00:00
|
|
|
extern int __cpuinit numa_cpu_node(int cpu);
|
2011-02-16 16:11:07 +00:00
|
|
|
extern int __init numa_add_memblk(int nodeid, u64 start, u64 end);
|
2010-02-15 21:43:30 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_NUMA_EMU
|
2010-12-23 01:23:40 +00:00
|
|
|
#define FAKE_NODE_MIN_SIZE ((u64)32 << 20)
|
2010-02-15 21:43:30 +00:00
|
|
|
#define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL))
|
2011-01-19 08:57:21 +00:00
|
|
|
void numa_emu_cmdline(char *);
|
2010-02-15 21:43:30 +00:00
|
|
|
#endif /* CONFIG_NUMA_EMU */
|
2006-01-11 21:45:36 +00:00
|
|
|
#else
|
2011-01-23 13:37:39 +00:00
|
|
|
static inline int numa_cpu_node(int cpu) { return NUMA_NO_NODE; }
|
2006-01-11 21:45:36 +00:00
|
|
|
#endif
|
2005-09-12 16:49:24 +00:00
|
|
|
|
2008-10-23 05:26:29 +00:00
|
|
|
#endif /* _ASM_X86_NUMA_64_H */
|