diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-13 06:14:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-13 06:24:31 -0400 |
commit | d1dedb52acd98bd5e13e1ff4c4d045d58bbd16fe (patch) | |
tree | 02b305e743a8160e87cf10258b868bd507dfbfb2 /kernel/panic.c | |
parent | ffd71da4e3f323b7673b061e6f7e0d0c12dc2b49 (diff) |
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 'kernel/panic.c')
-rw-r--r-- | kernel/panic.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 57fb005de546..ca75e819d0ea 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -85,14 +85,12 @@ NORET_TYPE void panic(const char * fmt, ...) | |||
85 | */ | 85 | */ |
86 | crash_kexec(NULL); | 86 | crash_kexec(NULL); |
87 | 87 | ||
88 | #ifdef CONFIG_SMP | ||
89 | /* | 88 | /* |
90 | * Note smp_send_stop is the usual smp shutdown function, which | 89 | * Note smp_send_stop is the usual smp shutdown function, which |
91 | * unfortunately means it may not be hardened to work in a panic | 90 | * unfortunately means it may not be hardened to work in a panic |
92 | * situation. | 91 | * situation. |
93 | */ | 92 | */ |
94 | smp_send_stop(); | 93 | smp_send_stop(); |
95 | #endif | ||
96 | 94 | ||
97 | atomic_notifier_call_chain(&panic_notifier_list, 0, buf); | 95 | atomic_notifier_call_chain(&panic_notifier_list, 0, buf); |
98 | 96 | ||