|
@@ -1040,14 +1040,14 @@ static void check_xmit_empty(unsigned long data)
|
|
|
struct moxa_port *ch;
|
|
|
|
|
|
ch = (struct moxa_port *) data;
|
|
|
- del_timer_sync(&moxa_ports[ch->port].emptyTimer);
|
|
|
if (ch->tty && (ch->statusflags & EMPTYWAIT)) {
|
|
|
if (MoxaPortTxQueue(ch->port) == 0) {
|
|
|
ch->statusflags &= ~EMPTYWAIT;
|
|
|
tty_wakeup(ch->tty);
|
|
|
return;
|
|
|
}
|
|
|
- mod_timer(&moxa_ports[ch->port].emptyTimer, jiffies + HZ);
|
|
|
+ mod_timer(&moxa_ports[ch->port].emptyTimer,
|
|
|
+ round_jiffies(jiffies + HZ));
|
|
|
} else
|
|
|
ch->statusflags &= ~EMPTYWAIT;
|
|
|
}
|