diff options
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r-- | include/linux/cpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 0be8d65bc3c8..7464ba3b4333 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/node.h> | 23 | #include <linux/node.h> |
24 | #include <linux/compiler.h> | 24 | #include <linux/compiler.h> |
25 | #include <linux/cpumask.h> | 25 | #include <linux/cpumask.h> |
26 | #include <asm/semaphore.h> | ||
27 | #include <linux/mutex.h> | 26 | #include <linux/mutex.h> |
28 | 27 | ||
29 | struct cpu { | 28 | struct cpu { |
@@ -109,7 +108,7 @@ static inline void cpuhotplug_mutex_unlock(struct mutex *cpu_hp_mutex) | |||
109 | extern void get_online_cpus(void); | 108 | extern void get_online_cpus(void); |
110 | extern void put_online_cpus(void); | 109 | extern void put_online_cpus(void); |
111 | #define hotcpu_notifier(fn, pri) { \ | 110 | #define hotcpu_notifier(fn, pri) { \ |
112 | static struct notifier_block fn##_nb = \ | 111 | static struct notifier_block fn##_nb __cpuinitdata = \ |
113 | { .notifier_call = fn, .priority = pri }; \ | 112 | { .notifier_call = fn, .priority = pri }; \ |
114 | register_cpu_notifier(&fn##_nb); \ | 113 | register_cpu_notifier(&fn##_nb); \ |
115 | } | 114 | } |