serial: kgdb_nmi: Switch from tasklets to real timers
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 29 May 2014 08:48:45 +0000 (09:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2014 18:28:05 +0000 (11:28 -0700)
commit8a0ff60f7eeab3df34d475c952b9d75799de8975
tree7f9f3fd66a75044d5ef44924d95effc08cd2cf6a
parent06d18289256ec58b78ae8d5b83ff70c3c34309f5
serial: kgdb_nmi: Switch from tasklets to real timers

kgdb_nmi uses tasklets on the assumption they will not be scheduled
until the next timer tick. This assumption is invalid and can lead to
live lock, continually servicing the kgdb_nmi tasklet. This is fixed
by using the timer API instead.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/kgdb_nmi.c