initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / asm-i386 / node.h
blobc1aeb27b13547be3167a8856ea590b0f7516b7e4
1 #ifndef _ASM_I386_NODE_H_
2 #define _ASM_I386_NODE_H_
4 #include <linux/device.h>
5 #include <linux/mmzone.h>
6 #include <linux/node.h>
7 #include <linux/topology.h>
9 struct i386_node {
10 struct node node;
12 extern struct i386_node node_devices[MAX_NUMNODES];
14 static inline int arch_register_node(int num){
15 int p_node;
16 struct node *parent = NULL;
18 if (!node_online(num))
19 return 0;
20 p_node = parent_node(num);
22 if (p_node != num)
23 parent = &node_devices[p_node].node;
25 return register_node(&node_devices[num].node, num, parent);
28 #endif /* _ASM_I386_NODE_H_ */