summaryrefslogtreecommitdiff
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index e9e7ebfd63d4..93853448aeb9 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -31,6 +31,24 @@ struct cpu {
extern int register_cpu(struct cpu *, int, struct node *);
extern struct class cpu_class;
+struct notifier_block;
+
+#ifdef CONFIG_SMP
+/* Need to know about CPUs going up/down? */
+extern int register_cpu_notifier(struct notifier_block *nb);
+extern void unregister_cpu_notifier(struct notifier_block *nb);
+
+int cpu_up(unsigned int cpu);
+#else
+static inline int register_cpu_notifier(struct notifier_block *nb)
+{
+ return 0;
+}
+static inline void unregister_cpu_notifier(struct notifier_block *nb)
+{
+}
+#endif /* CONFIG_SMP */
+
/* Stop CPUs going up and down. */
extern struct semaphore cpucontrol;
#endif /* _LINUX_CPU_H_ */