tty: Use spin_lock() inside existing critical region
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 6 Mar 2013 12:20:55 +0000 (07:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 21:02:32 +0000 (14:02 -0700)
commitbc30c3b23bb953fc6eb59e7ac6ecb48d92962bb0
treeae741d582aa942a1f8ba1c7b4dea7e29b050980c
parent20cc225bab6709408840e4400cd1a5c2b28c7a52
tty: Use spin_lock() inside existing critical region

The interrupt state does not need to be saved, disabled and
restored here; interrupts are already off because this lock
is bracketed by spin_lock_irq/spin_unlock_irq.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c