OSDN Git Service

XTENSA: iss/console, fix potential deadlock
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:06 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 19:47:01 +0000 (11:47 -0800)
commitc9ddb1d6e29697029118377c1f4f9a4a148d755e
tree565b58ae6c81d692b7e1d4f74d51aa95ccaa99f9
parent86e7e874635ea76fee8608646afcb103414c6e72
XTENSA: iss/console, fix potential deadlock

If the timer ticks while we are holding the spinlock, the system
deadlocks. It is due to synchronous del_timer.

So to fix that, use spinlocks that properly disable bottom halves.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/platforms/iss/console.c