]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Use spin_lock_irq() for ctrl_lock when interrupts enabled
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:33:25 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit7ccc9950d20ffcff265c761f9f4b9d7e68784de7
treead3c3d6cbcc440714a529d772ca6be940b6acbbc
parent203600d92dca4697a5fedc0ab5f3f852778f2ef1
tty: Use spin_lock_irq() for ctrl_lock when interrupts enabled

Interrupts are enabled in the n_tty_read() loop, ioctl(TIOCPKT)
and pty driver flush_buffer() routine; no need to save and restore
local interrupt state.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
drivers/tty/pty.c