]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: trigger all-cpu backtrace when locked up and going to panic
authorSasha Levin <sasha.levin@oracle.com>
Wed, 20 Mar 2013 04:07:02 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:22 +0000 (16:28 +1100)
commit08278094c5952f431cde53244bc43cdb73cc244d
tree431690e2487d010acbe0144f693eb3f88e80124e
parenta7689025e9f5a733235d97d884343ba932310fdc
watchdog: trigger all-cpu backtrace when locked up and going to panic

Send an NMI to all CPUs when a lockup is detected and the lockup watchdog
code is configured to panic.  This gives us a fairly uptodate snapshot of
all CPUs in the system.

This lets us get stack trace of all CPUs which makes life easier trying to
debug a deadlock, and the NMI doesn't change anything since the next step
is a kernel panic.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/watchdog.c