blob: d51e56fdc3da04d534a5cf618548b0956f1d7868 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_X8664_NUMA_H
2#define _ASM_X8664_NUMA_H 1
3
4#include <linux/nodemask.h>
5#include <asm/numnodes.h>
6
7struct node {
8 u64 start,end;
9};
10
11extern int compute_hash_shift(struct node *nodes, int numnodes);
Andi Kleen69e1a332005-09-12 18:49:24 +020012extern int pxm_to_node(int nid);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14#define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
15
16extern void numa_add_cpu(int cpu);
17extern void numa_init_array(void);
18extern int numa_off;
19
Andi Kleen69d81fc2005-11-05 17:25:53 +010020extern void numa_set_node(int cpu, int node);
21
Andi Kleen0b07e982005-09-12 18:49:24 +020022extern unsigned char apicid_to_node[256];
23
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#define NUMA_NO_NODE 0xff
25
26#endif