mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
ffd71da4e3
commit
d1dedb52ac
2 changed files with 3 additions and 3 deletions
|
@ -85,14 +85,12 @@ NORET_TYPE void panic(const char * fmt, ...)
|
|||
*/
|
||||
crash_kexec(NULL);
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
/*
|
||||
* Note smp_send_stop is the usual smp shutdown function, which
|
||||
* unfortunately means it may not be hardened to work in a panic
|
||||
* situation.
|
||||
*/
|
||||
smp_send_stop();
|
||||
#endif
|
||||
|
||||
atomic_notifier_call_chain(&panic_notifier_list, 0, buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue