diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpu.h | 4 | ||||
| -rw-r--r-- | include/linux/node.h | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 08d50c53aab4..b23bf1c8addc 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -31,10 +31,10 @@ struct cpu { | |||
| 31 | struct sys_device sysdev; | 31 | struct sys_device sysdev; |
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | extern int register_cpu(struct cpu *, int, struct node *); | 34 | extern int register_cpu(struct cpu *cpu, int num); |
| 35 | extern struct sys_device *get_cpu_sysdev(unsigned cpu); | 35 | extern struct sys_device *get_cpu_sysdev(unsigned cpu); |
| 36 | #ifdef CONFIG_HOTPLUG_CPU | 36 | #ifdef CONFIG_HOTPLUG_CPU |
| 37 | extern void unregister_cpu(struct cpu *, struct node *); | 37 | extern void unregister_cpu(struct cpu *cpu); |
| 38 | #endif | 38 | #endif |
| 39 | struct notifier_block; | 39 | struct notifier_block; |
| 40 | 40 | ||
diff --git a/include/linux/node.h b/include/linux/node.h index 1e5347527fa8..81dcec84cd8f 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
| @@ -32,6 +32,19 @@ extern int register_node(struct node *, int, struct node *); | |||
| 32 | extern void unregister_node(struct node *node); | 32 | extern void unregister_node(struct node *node); |
| 33 | extern int register_one_node(int nid); | 33 | extern int register_one_node(int nid); |
| 34 | extern void unregister_one_node(int nid); | 34 | extern void unregister_one_node(int nid); |
| 35 | #ifdef CONFIG_NUMA | ||
| 36 | 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 | #else | ||
| 39 | static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid) | ||
| 40 | { | ||
| 41 | return 0; | ||
| 42 | } | ||
| 43 | static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) | ||
| 44 | { | ||
| 45 | return 0; | ||
| 46 | } | ||
| 47 | #endif | ||
| 35 | 48 | ||
| 36 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) | 49 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) |
| 37 | 50 | ||
