]> git.baikalelectronics.ru Git - kernel.git/commit
x86/uv/nmi, kgdb/kdb: Fix UV NMI handler when KDB not configured
authorMike Travis <travis@sgi.com>
Tue, 14 Jan 2014 16:25:54 +0000 (10:25 -0600)
committerIngo Molnar <mingo@kernel.org>
Sat, 25 Jan 2014 07:55:11 +0000 (08:55 +0100)
commitf0b8826fdfd4a89b35e93502e9a00c8402d50432
tree92ef489170be0aea82f9ce6e0dcb2460d9d60193
parent3773b0aa1ce925388aedddd6ad7838bfb887c91f
x86/uv/nmi, kgdb/kdb: Fix UV NMI handler when KDB not configured

Fix UV call into kgdb to depend only on whether KGDB is defined
and not both KGDB and KDB.  This allows the power nmi command to
use the gdb remote connection if enabled.  Note new action of
'kgdb' needs to be set as well to indicate user wants to wait
for gdb to be connected.  If it's set to 'kdb' then an error
message is displayed if KDB is not configured.

Also note that if both KGDB and KDB are enabled, then the action
of 'kgdb' or 'kdb' has no affect on which is used.  See the KGDB
documentation for further information.

Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Hedi Berriche <hedi@sgi.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/20140114162551.635540667@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/uv/uv_nmi.c