* [PATCH] Davicom net driver jiffies cleanup
@ 2001-11-03 23:34 Andreas Dilger
0 siblings, 0 replies; only message in thread
From: Andreas Dilger @ 2001-11-03 23:34 UTC (permalink / raw)
To: torvalds, Alan Cox; +Cc: Tobias Ringstrom, linux-kernel
A patch for jiffies cleanup of the Davicom fast ethernet driver (dmfe).
The maintainer (Tobias Ringstrom <tori@unhappy.mine.nu>) is CC'd, but
it is obviously correct.
Cheers, Andreas
===========================================================================
--- linux/drivers/net/dmfe.c.orig Thu Oct 25 02:08:43 2001
+++ linux/drivers/net/dmfe.c Fri Nov 2 21:52:45 2001
@@ -1109,11 +1109,11 @@
/* TX polling kick monitor */
if ( db->tx_packet_cnt &&
- ((jiffies - dev->trans_start) > DMFE_TX_KICK) ) {
+ time_after(jiffies, dev->trans_start + DMFE_TX_KICK) ) {
outl(0x1, dev->base_addr + DCR1); /* Tx polling again */
/* TX Timeout */
- if ( (jiffies - dev->trans_start) > DMFE_TX_TIMEOUT ) {
+ if ( time_after(jiffies, dev->trans_start + DMFE_TX_TIMEOUT) ) {
db->reset_TXtimeout++;
db->wait_reset = 1;
printk(KERN_WARNING "%s: Tx timeout - resetting\n",
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-11-05 16:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-03 23:34 [PATCH] Davicom net driver jiffies cleanup Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).