]> rtime.felk.cvut.cz Git - linux-imx.git/commit
kdb: Implement disable_nmi command
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 24 Sep 2012 21:27:51 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 20:42:25 +0000 (13:42 -0700)
commitad394f66fa57ae66014cb74f337e2820bac4c417
treea10670b8a9b695aec7fba79d2be2191bd405a12a
parent5a14fead07bcf4e0acc877a8d9e1d1f40a441153
kdb: Implement disable_nmi command

This command disables NMI-entry. If NMI source has been previously shared
with a serial console ("debug port"), this effectively releases the port
from KDB exclusive use, and makes the console available for normal use.

Of course, NMI can be reenabled, enable_nmi modparam is used for that:

echo 1 > /sys/module/kdb/parameters/enable_nmi

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/debug/kdb/kdb_main.c