]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: remove tty_locked
authorJiri Slaby <jslaby@suse.cz>
Thu, 14 Jul 2011 12:35:14 +0000 (14:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 17:34:07 +0000 (10:34 -0700)
commitc2a9e7b1ddb04c77d8d79add57b89a99f2454565
treefca513a03781a2d0e2ac518aab13c8d528a0468c
parentff4627ef0bc1e19348ffeb008b0a0e31328055aa
TTY: remove tty_locked

We used it really only serial and ami_serial. The rest of the
callsites were BUG/WARN_ONs to check if BTM is held. Now that we
pruned tty_locked from both of the real users, we can get rid of
tty_lock along with __big_tty_mutex_owner.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c
drivers/tty/tty_ldisc.c
drivers/tty/tty_mutex.c
drivers/tty/vt/selection.c
include/linux/tty.h