]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/cpu.h
Merge ARM fixes
[karo-tx-linux.git] / include / linux / cpu.h
index bfb520212d7109eafb9811d9df5f827dc0a9b5f6..769ddc6df49243f39d8b8059e9c4a74828de4436 100644 (file)
@@ -49,10 +49,20 @@ struct notifier_block;
 
 #ifdef CONFIG_SMP
 /* Need to know about CPUs going up/down? */
-extern int register_cpu_notifier(struct notifier_block *nb);
 #ifdef CONFIG_HOTPLUG_CPU
+extern int register_cpu_notifier(struct notifier_block *nb);
 extern void unregister_cpu_notifier(struct notifier_block *nb);
 #else
+
+#ifndef MODULE
+extern int register_cpu_notifier(struct notifier_block *nb);
+#else
+static inline int register_cpu_notifier(struct notifier_block *nb)
+{
+       return 0;
+}
+#endif
+
 static inline void unregister_cpu_notifier(struct notifier_block *nb)
 {
 }