2007-12-04 22:01:44

by Daniel Walker

[permalink] [raw]
Subject: [PATCH 1/3] drivers/char/tty_io.c: remove pty_sem

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

Signed-off-by: Daniel Walker <[email protected]>

---
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 */

--


2007-12-04 23:35:37

by Alan

[permalink] [raw]
Subject: Re: [PATCH 1/3] drivers/char/tty_io.c: remove pty_sem

On Tue, 04 Dec 2007 00:00:01 -0800
Daniel Walker <[email protected]> wrote:

> I couldn't find any users, so removing it..
>
> Signed-off-by: Daniel Walker <[email protected]>

Acked-by: Alan Cox <[email protected]>