summaryrefslogtreecommitdiffstats
path: root/include/linux/smp.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-13 11:14:06 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-13 11:24:31 +0100
commitd1dedb52acd98bd5e13e1ff4c4d045d58bbd16fe (patch)
tree02b305e743a8160e87cf10258b868bd507dfbfb2 /include/linux/smp.h
parentffd71da4e3f323b7673b061e6f7e0d0c12dc2b49 (diff)
downloadop-kernel-dev-d1dedb52acd98bd5e13e1ff4c4d045d58bbd16fe.zip
op-kernel-dev-d1dedb52acd98bd5e13e1ff4c4d045d58bbd16fe.tar.gz
panic, smp: provide smp_send_stop() wrapper on UP too
Impact: cleanup, no code changed Remove an ugly #ifdef CONFIG_SMP from panic(), by providing an smp_send_stop() wrapper on UP too. LKML-Reference: <49B91A7E.76E4.0078.0@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r--include/linux/smp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 2d3bcb6..a69db82 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -38,7 +38,7 @@ int smp_call_function_single(int cpuid, void (*func) (void *info), void *info,
/*
* main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc.
* (defined in asm header):
- */
+ */
/*
* stops all CPUs but the current one:
@@ -122,6 +122,8 @@ extern unsigned int setup_max_cpus;
#else /* !SMP */
+static inline void smp_send_stop(void) { }
+
/*
* These macros fold the SMP functionality into a single CPU system
*/
OpenPOWER on IntegriCloud