diff options
Diffstat (limited to 'include/linux/node.h')
-rw-r--r-- | include/linux/node.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/node.h b/include/linux/node.h index 681a697b9a86..dae1521e1f05 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
@@ -28,6 +28,7 @@ struct node { | |||
28 | 28 | ||
29 | struct memory_block; | 29 | struct memory_block; |
30 | extern struct node node_devices[]; | 30 | extern struct node node_devices[]; |
31 | typedef void (*node_registration_func_t)(struct node *); | ||
31 | 32 | ||
32 | extern int register_node(struct node *, int, struct node *); | 33 | extern int register_node(struct node *, int, struct node *); |
33 | extern void unregister_node(struct node *node); | 34 | extern void unregister_node(struct node *node); |
@@ -39,6 +40,11 @@ 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 | extern int register_mem_sect_under_node(struct memory_block *mem_blk, |
40 | int nid); | 41 | int nid); |
41 | extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk); | 42 | extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk); |
43 | |||
44 | #ifdef CONFIG_HUGETLBFS | ||
45 | extern void register_hugetlbfs_with_node(node_registration_func_t doregister, | ||
46 | node_registration_func_t unregister); | ||
47 | #endif | ||
42 | #else | 48 | #else |
43 | static inline int register_one_node(int nid) | 49 | static inline int register_one_node(int nid) |
44 | { | 50 | { |
@@ -65,6 +71,11 @@ static inline int unregister_mem_sect_under_nodes(struct memory_block *mem_blk) | |||
65 | { | 71 | { |
66 | return 0; | 72 | return 0; |
67 | } | 73 | } |
74 | |||
75 | static inline void register_hugetlbfs_with_node(node_registration_func_t reg, | ||
76 | node_registration_func_t unreg) | ||
77 | { | ||
78 | } | ||
68 | #endif | 79 | #endif |
69 | 80 | ||
70 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) | 81 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) |