kgdb: timeout if secondary CPUs ignore the roundup
authorDaniel Thompson <daniel.thompson@linaro.org>
Tue, 11 Nov 2014 15:31:53 +0000 (09:31 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Tue, 11 Nov 2014 15:31:53 +0000 (09:31 -0600)
commita1465d2f396e416a0049332b20fca5977384b9f5
tree6f8d42833a2f4d06a047d75cca5209d28b7c5986
parentb8017177cdfd46b0222b3b74b206780f52f22f3d
kgdb: timeout if secondary CPUs ignore the roundup

Currently if an active CPU fails to respond to a roundup request the CPU
that requested the roundup will become stuck.  This needlessly reduces the
robustness of the debugger.

This patch introduces a timeout allowing the system state to be examined
even when the system contains unresponsive processors.  It also modifies
kdb's cpu command to make it censor attempts to switch to unresponsive
processors and to report their state as (D)ead.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/debug_core.c
kernel/debug/kdb/kdb_debugger.c
kernel/debug/kdb/kdb_main.c