diff options
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r-- | include/linux/cpu.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index c2747ac2ae43..4d668e05d458 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 <linux/mutex.h> | ||
27 | 26 | ||
28 | struct cpu { | 27 | struct cpu { |
29 | int node_id; /* The node which contains the CPU */ | 28 | int node_id; /* The node which contains the CPU */ |
@@ -70,7 +69,6 @@ static inline void unregister_cpu_notifier(struct notifier_block *nb) | |||
70 | 69 | ||
71 | int cpu_up(unsigned int cpu); | 70 | int cpu_up(unsigned int cpu); |
72 | void notify_cpu_starting(unsigned int cpu); | 71 | void notify_cpu_starting(unsigned int cpu); |
73 | extern void cpu_hotplug_init(void); | ||
74 | extern void cpu_maps_update_begin(void); | 72 | extern void cpu_maps_update_begin(void); |
75 | extern void cpu_maps_update_done(void); | 73 | extern void cpu_maps_update_done(void); |
76 | 74 | ||
@@ -85,10 +83,6 @@ static inline void unregister_cpu_notifier(struct notifier_block *nb) | |||
85 | { | 83 | { |
86 | } | 84 | } |
87 | 85 | ||
88 | static inline void cpu_hotplug_init(void) | ||
89 | { | ||
90 | } | ||
91 | |||
92 | static inline void cpu_maps_update_begin(void) | 86 | static inline void cpu_maps_update_begin(void) |
93 | { | 87 | { |
94 | } | 88 | } |
@@ -103,16 +97,6 @@ extern struct sysdev_class cpu_sysdev_class; | |||
103 | #ifdef CONFIG_HOTPLUG_CPU | 97 | #ifdef CONFIG_HOTPLUG_CPU |
104 | /* Stop CPUs going up and down. */ | 98 | /* Stop CPUs going up and down. */ |
105 | 99 | ||
106 | static inline void cpuhotplug_mutex_lock(struct mutex *cpu_hp_mutex) | ||
107 | { | ||
108 | mutex_lock(cpu_hp_mutex); | ||
109 | } | ||
110 | |||
111 | static inline void cpuhotplug_mutex_unlock(struct mutex *cpu_hp_mutex) | ||
112 | { | ||
113 | mutex_unlock(cpu_hp_mutex); | ||
114 | } | ||
115 | |||
116 | extern void get_online_cpus(void); | 100 | extern void get_online_cpus(void); |
117 | extern void put_online_cpus(void); | 101 | extern void put_online_cpus(void); |
118 | #define hotcpu_notifier(fn, pri) { \ | 102 | #define hotcpu_notifier(fn, pri) { \ |
@@ -126,11 +110,6 @@ int cpu_down(unsigned int cpu); | |||
126 | 110 | ||
127 | #else /* CONFIG_HOTPLUG_CPU */ | 111 | #else /* CONFIG_HOTPLUG_CPU */ |
128 | 112 | ||
129 | static inline void cpuhotplug_mutex_lock(struct mutex *cpu_hp_mutex) | ||
130 | { } | ||
131 | static inline void cpuhotplug_mutex_unlock(struct mutex *cpu_hp_mutex) | ||
132 | { } | ||
133 | |||
134 | #define get_online_cpus() do { } while (0) | 113 | #define get_online_cpus() do { } while (0) |
135 | #define put_online_cpus() do { } while (0) | 114 | #define put_online_cpus() do { } while (0) |
136 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) | 115 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) |