]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/spinlock_debug.c: print owner on spinlock lockup
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 5 Oct 2011 00:43:35 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:24 +0000 (17:32 +1100)
commit95c94eeafaba4c2813e95081eb8d0638115128fa
tree71a2a5ab8d14c0ddde139d133e859806604458cf
parent96da26a85c614d4888007b7bc6e4dc3553a1035e
lib/spinlock_debug.c: print owner on spinlock lockup

When SPIN_BUG_ON is triggered, the lock owner information is reported.
But it is omitted when spinlock lockup is detected.

This information is useful especially on the architectures which don't
implement trigger_all_cpu_backtrace() that is called just after detecting
lockup.  So report it and also avoid message format duplication.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/spinlock_debug.c