Skip to contentSkip to conversation

pSeries hvsi char driver janitorial cleanup.

PATCH In review Linas Vepstas 2 participants 2 messages Aug 3, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pSeries hvsi char driver janitorial cleanup.

Andrew,
Please apply.

A set of tty line discipline cleanup patches were introduced before the dawn of time, in kernel version 2.4.21. This patch performs that cleanup for the hvsi driver.

The hvsi driver is used only on IBM pSeries PowerPC boxes. The driver was originally written by Hollis Blanchard, who has delegated maintainership to me. So this my first and maybe only patch in this official new role, because this driver is otherwise bug-free :-)

----

 drivers/char/hvsi.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/char/hvsi.c +1 -4
Index: linux-2.6.18-rc3-git1/drivers/char/hvsi.c
===================================================================
@@ -986,10 +986,7 @@ static void hvsi_write_worker(void *arg)
 		start_j = 0;
 #endif /* DEBUG */
 		wake_up_all(&hp->emptyq);
-		if (test_bit(TTY_DO_WRITE_WAKEUP, &hp->tty->flags)
-				&& hp->tty->ldisc.write_wakeup)
-			hp->tty->ldisc.write_wakeup(hp->tty);
-		wake_up_interruptible(&hp->tty->write_wait);
+		tty_wakeup(hp->tty);
 	}
 
 out:
Acked-by on v1 1/1
#1 lore raw

Ar Iau, 2006-08-03 am 14:36 -0500, ysgrifennodd Linas Vepstas:

Quoted 6 lines

Andrew,
Please apply.

A set of tty line discipline cleanup patches were introduced before the dawn of time, in kernel version 2.4.21. This patch performs that cleanup for the hvsi driver.

Actually its also a bug fix, tty->ldisc should be locked by refcounting and the helpers do this for you.