diff options
-rw-r--r-- | include/linux/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 0ad72c4cf312..b79c57569367 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
@@ -119,8 +119,9 @@ static inline void cpuhotplug_mutex_unlock(struct mutex *cpu_hp_mutex) | |||
119 | #define lock_cpu_hotplug() do { } while (0) | 119 | #define lock_cpu_hotplug() do { } while (0) |
120 | #define unlock_cpu_hotplug() do { } while (0) | 120 | #define unlock_cpu_hotplug() do { } while (0) |
121 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) | 121 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) |
122 | #define register_hotcpu_notifier(nb) do { (void)(nb); } while (0) | 122 | /* These aren't inline functions due to a GCC bug. */ |
123 | #define unregister_hotcpu_notifier(nb) do { (void)(nb); } while (0) | 123 | #define register_hotcpu_notifier(nb) ({ (void)(nb); 0; }) |
124 | #define unregister_hotcpu_notifier(nb) ({ (void)(nb); }) | ||
124 | 125 | ||
125 | /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ | 126 | /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ |
126 | static inline int cpu_is_offline(int cpu) { return 0; } | 127 | static inline int cpu_is_offline(int cpu) { return 0; } |