Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1dedb52 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
parent ffd71da4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
 */
+0 −2
Original line number Diff line number Diff line
@@ -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);