aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/node.h')
-rw-r--r--include/linux/node.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/node.h b/include/linux/node.h
index 254dc3de650..bc001bc225c 100644
--- a/include/linux/node.h
+++ b/include/linux/node.h
@@ -26,8 +26,33 @@ struct node {
26 struct sys_device sysdev; 26 struct sys_device sysdev;
27}; 27};
28 28
29extern struct node node_devices[];
30
29extern int register_node(struct node *, int, struct node *); 31extern int register_node(struct node *, int, struct node *);
30extern void unregister_node(struct node *node); 32extern void unregister_node(struct node *node);
33#ifdef CONFIG_NUMA
34extern int register_one_node(int nid);
35extern void unregister_one_node(int nid);
36extern int register_cpu_under_node(unsigned int cpu, unsigned int nid);
37extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid);
38#else
39static inline int register_one_node(int nid)
40{
41 return 0;
42}
43static inline int unregister_one_node(int nid)
44{
45 return 0;
46}
47static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid)
48{
49 return 0;
50}
51static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid)
52{
53 return 0;
54}
55#endif
31 56
32#define to_node(sys_device) container_of(sys_device, struct node, sysdev) 57#define to_node(sys_device) container_of(sys_device, struct node, sysdev)
33 58