ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-i386 / node.h
1 #ifndef _ASM_I386_NODE_H_
2 #define _ASM_I386_NODE_H_
3
4 #include <linux/device.h>
5 #include <linux/mmzone.h>
6 #include <linux/node.h>
7 #include <linux/topology.h>
8
9 struct i386_node {
10         struct node node;
11 };
12 extern struct i386_node node_devices[MAX_NUMNODES];
13
14 static inline int arch_register_node(int num){
15         int p_node;
16         struct node *parent = NULL;
17
18         if (!node_online(num))
19                 return 0;
20         p_node = parent_node(num);
21
22         if (p_node != num)
23                 parent = &node_devices[p_node].node;
24
25         return register_node(&node_devices[num].node, num, parent);
26 }
27
28 #endif /* _ASM_I386_NODE_H_ */