equal
deleted
inserted
replaced
24 |
24 |
25 struct node { |
25 struct node { |
26 struct sys_device sysdev; |
26 struct sys_device sysdev; |
27 }; |
27 }; |
28 |
28 |
|
29 struct memory_block; |
29 extern struct node node_devices[]; |
30 extern struct node node_devices[]; |
30 |
31 |
31 extern int register_node(struct node *, int, struct node *); |
32 extern int register_node(struct node *, int, struct node *); |
32 extern void unregister_node(struct node *node); |
33 extern void unregister_node(struct node *node); |
33 #ifdef CONFIG_NUMA |
34 #ifdef CONFIG_NUMA |
34 extern int register_one_node(int nid); |
35 extern int register_one_node(int nid); |
35 extern void unregister_one_node(int nid); |
36 extern void unregister_one_node(int nid); |
36 extern int register_cpu_under_node(unsigned int cpu, unsigned int nid); |
37 extern int register_cpu_under_node(unsigned int cpu, unsigned int nid); |
37 extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); |
38 extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); |
|
39 extern int register_mem_sect_under_node(struct memory_block *mem_blk, |
|
40 int nid); |
|
41 extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk); |
38 #else |
42 #else |
39 static inline int register_one_node(int nid) |
43 static inline int register_one_node(int nid) |
40 { |
44 { |
41 return 0; |
45 return 0; |
42 } |
46 } |
50 } |
54 } |
51 static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) |
55 static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) |
52 { |
56 { |
53 return 0; |
57 return 0; |
54 } |
58 } |
|
59 static inline int register_mem_sect_under_node(struct memory_block *mem_blk, |
|
60 int nid) |
|
61 { |
|
62 return 0; |
|
63 } |
|
64 static inline int unregister_mem_sect_under_nodes(struct memory_block *mem_blk) |
|
65 { |
|
66 return 0; |
|
67 } |
55 #endif |
68 #endif |
56 |
69 |
57 #define to_node(sys_device) container_of(sys_device, struct node, sysdev) |
70 #define to_node(sys_device) container_of(sys_device, struct node, sysdev) |
58 |
71 |
59 #endif /* _LINUX_NODE_H_ */ |
72 #endif /* _LINUX_NODE_H_ */ |