lkml.org 
[lkml]   [2002]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] isdn-tty driver not HZ aware
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 |[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.384 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog