]> git.baikalelectronics.ru Git - kernel.git/commit
pty: Use spin_lock_irq() for pty_set_termios()
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:33:24 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit203600d92dca4697a5fedc0ab5f3f852778f2ef1
tree67b087c8fb4142ad6d95b9a9e8d085ad8ace6ee6
parent55767dfb1c2d6b261a0a831616576d10b954d9d1
pty: Use spin_lock_irq() for pty_set_termios()

The tty driver's set_termios() method is called with interrupts
enabled; there is no need to save and restore the 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/pty.c