sparc64: fatal trap should stop all cpus
authorDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 7 Jan 2015 00:31:39 +0000 (18:31 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 05:42:57 +0000 (21:42 -0800)
commit94ab5990760a54bb1f0fca99e0d374260cae3b8b
treec24586962b38930c843bd6135fb71b64fdc812f2
parent8f765b84918de82789c1f7650490e15208cb1eb3
sparc64: fatal trap should stop all cpus

"echo c > /proc/sysrq-trigger" does not result in a system crash. There
are two problems. One is that the trap handler ignores the global
variable, panic_on_oops. The other is that smp_send_stop() is a no-op
which leaves the other cpus running normally when one cpu panics.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/smp_64.c
arch/sparc/kernel/traps_64.c