Re: [PATCH 1/1] Char: tty_wakeup cleanup



On Sat, 16 Dec 2006 23:17:00 +0100 (CET), Jiri Slaby wrote:
tty_wakeup cleanup

- remove wake_up_interruptible(&tty->write_wait) surrounding
tty_wakup(tty);
- substitute tty->ldisc.write_wakeup(tty) + wake_up() by tty_wakeup(tty);

Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>

Acked-by: Tilman Schmidt <tilman@xxxxxxx>

(for drivers/isdn/gigaset/interface.c)

---
commit 2acac8f970a75a3dc8466781845ae5d14c3d8988
tree 396cc84d4e198d2a65cd4aa9748aabeab5681ba5
parent 8b380d8b1c3ff7d09d68d467d2f135774cab4086
author Jiri Slaby <jirislaby@xxxxxxxxx> Sat, 16 Dec 2006 22:22:57 +0059
committer Jiri Slaby <jirislaby@xxxxxxxxx> Sat, 16 Dec 2006 22:22:57 +0059
[...]
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index 458b646..f13de20 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -599,19 +599,9 @@ out:
static void if_wake(unsigned long data)
{
struct cardstate *cs = (struct cardstate *) data;
- struct tty_struct *tty;
-
- tty = cs->tty;
- if (!tty)
- return;
-
- if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
- tty->ldisc.write_wakeup) {
- gig_dbg(DEBUG_IF, "write wakeup call");
- tty->ldisc.write_wakeup(tty);
- }

- wake_up_interruptible(&tty->write_wait);
+ if (cs->tty)
+ tty_wakeup(cs->tty);
}

/*** interface to common ***/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [git pull] jfs update
    ... commit c5111f504d2a9b0d258d7c4752b4093523315989 ... tree 6a52864aff79691689aea21cb0cb928327d5de5b ... parent 69eb66d7da7dba2696281981347698e1693c2340 ... JFS: Take logsync lock before testing mp->lsn ...
    (Linux-Kernel)
  • [git patches] IDE update
    ... tree 4105ba774c775cdf53fb5fd3e07158b15218cb27 ... parent 21e2c01dc3e38d466eda5871645878d2c3a33261 ... commit 21e2c01dc3e38d466eda5871645878d2c3a33261 ... Splitted up from the Debian kernel patch. ...
    (Linux-Kernel)
  • [git pull] jfs update
    ... commit be0bf7da19135a7a0f8c275f20c819940be218d9 ... tree c8ba72b711730ce11f52fc20cd7c0e9c4bee7bc0 ... parent 5b3030e39049212c975665cdb3eeabcfaf7c94ca ... JFS: Take logsync lock before testing mp->lsn ...
    (Linux-Kernel)
  • [2.6-GIT] NTFS: Release 2.1.23.
    ... This is a big NTFS update. ... commit ba6d2377c85c9b8a793f455d8c9b6cf31985d70f ... tree 21e65c76db693869c84864af02e91c4b997a6ba5 ... parent af859a42d798f047fbfe198ed315a942662c39d2 ...
    (Linux-Kernel)
  • (no subject)
    ... everything up in one tree, so that there's absolutely no record of the ... That is, you may want to merge multiple parents in _one_ commit, ... each parent you have merged. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)