[PATCH] uml: fix previous console locking

Eliminate the open_mutex after complaints from Blaisorblade.  It turns out
that the tty count provides the information needed to tell whether we are the
first opener or last closer.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jeff Dike
2007-02-10 01:44:08 -08:00
committed by Linus Torvalds
parent d5c9ffc6c6
commit c6256c6824
2 changed files with 8 additions and 41 deletions

View File

@@ -35,7 +35,6 @@ struct line {
spinlock_t count_lock;
int valid;
struct mutex open_mutex;
char *init_str;
int init_pri;
struct list_head chan_list;