[PATCH] isdn-tty driver not HZ aware

From: Christian Borntraeger (linux@borntraeger.net)
Date: Mon Dec 02 2002 - 13:45:46 EST


This patch makes isdn_tty HZ aware.
The first change changes 3000 jiffies (now 3 seconds) to 30 seconds according to the comment.
I dont know, if the second change (schedule_timeout(50);) has to be half a second but this was the value used in 2.4.

--- drivers/isdn/i4l/isdn_tty.c.org 2002-11-27 22:36:16.000000000 +0000
+++ drivers/isdn/i4l/isdn_tty.c 2002-12-01 19:03:15.000000000 +0000
@@ -1876,7 +1876,7 @@
          * line status register.
          */
         if (info->flags & ISDN_ASYNC_INITIALIZED) {
- tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */
+ tty_wait_until_sent(tty, 30 * HZ); /* 30 seconds timeout */
                 /*
                  * Before we drop DTR, make sure the UART transmitter
                  * has completely drained; this is especially
@@ -1901,7 +1901,7 @@
         tty->closing = 0;
         if (info->blocked_open) {
                 set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(50);
+ schedule_timeout(HZ/2);
                 wake_up_interruptible(&info->open_wait);
         }
         info->flags &= ~(ISDN_ASYNC_NORMAL_ACTIVE | ISDN_ASYNC_CALLOUT_ACTIVE |



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



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:13 EST