All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drivers/char/tty_io.c: remove pty_sem
@ 2007-12-04  8:00 ` Daniel Walker
  2007-12-04 23:27   ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Walker @ 2007-12-04  8:00 UTC (permalink / raw)
  To: akpm; +Cc: mingo, linux-kernel, linux, jonathan, matthias.kaehlcke

[-- Attachment #1: remove-pty_sem-from-tty_bufhead.patch --]
[-- Type: text/plain, Size: 1140 bytes --]

I couldn't find any users, so removing it..

Signed-off-by: Daniel Walker <dwalker@mvista.com>

---
 drivers/char/tty_io.c |    1 -
 include/linux/tty.h   |    1 -
 2 files changed, 2 deletions(-)

Index: linux-2.6.23/drivers/char/tty_io.c
===================================================================
--- linux-2.6.23.orig/drivers/char/tty_io.c
+++ linux-2.6.23/drivers/char/tty_io.c
@@ -3721,7 +3721,6 @@ static void initialize_tty_struct(struct
 	tty->buf.head = tty->buf.tail = NULL;
 	tty_buffer_init(tty);
 	INIT_DELAYED_WORK(&tty->buf.work, flush_to_ldisc);
-	init_MUTEX(&tty->buf.pty_sem);
 	mutex_init(&tty->termios_mutex);
 	init_waitqueue_head(&tty->write_wait);
 	init_waitqueue_head(&tty->read_wait);
Index: linux-2.6.23/include/linux/tty.h
===================================================================
--- linux-2.6.23.orig/include/linux/tty.h
+++ linux-2.6.23/include/linux/tty.h
@@ -73,7 +73,6 @@ struct tty_buffer {
 
 struct tty_bufhead {
 	struct delayed_work work;
-	struct semaphore pty_sem;
 	spinlock_t lock;
 	struct tty_buffer *head;	/* Queue head */
 	struct tty_buffer *tail;	/* Active buffer */

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-04 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04  8:00 [PATCH 1/3] drivers/char/tty_io.c: remove pty_sem Daniel Walker
2007-12-04  8:00 ` Daniel Walker
2007-12-04 23:27   ` Alan Cox
2007-12-04  8:00 ` [PATCH 2/3] drivers/isdn/i4l/isdn_tty.c: remove write_sem Daniel Walker
2007-12-04  8:00 ` [PATCH 3/3] unix98 allocated_ptys_lock semaphore to mutex Daniel Walker
2007-12-04 22:17   ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.