]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit803f5aab4a715b6968e799aa0ac30fd0a35bd012
tree6f8d42833a2f4d06a047d75cca5209d28b7c5986
parent3e7f54ea62347b96d3947fd4f5024d9945ae00bc
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