]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpu-hotplug-provide-a-generic-helper-to-disable-enable-cpu-hotplug-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 9 May 2013 23:57:01 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:34 +0000 (14:17 +1000)
a pox on macros, for the 1000th time

Cc: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Robin Holt <holt@sgi.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cpu.h

index 3c31f8557224434a07a4c49d31cc57e31a67f074..73f02a3e6ab74cbb2a0173fdbd91153cac2e15dd 100644 (file)
@@ -173,8 +173,13 @@ static inline void cpu_maps_update_done(void)
 extern void cpu_hotplug_enable(void);
 extern void cpu_hotplug_disable(void);
 #else
-#define cpu_hotplug_enable()   do { } while (0)
-#define cpu_hotplug_disable()  do { } while (0)
+static inline void cpu_hotplug_enable(void)
+{
+}
+
+static inline void cpu_hotplug_disable(void)
+{
+}
 #endif
 
 extern struct bus_type cpu_subsys;