Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 5 Nov 2001 11:33:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 5 Nov 2001 11:33:02 -0500 Received: from h24-64-71-161.cg.shawcable.net ([24.64.71.161]:53494 "EHLO lynx.adilger.int") by vger.kernel.org with ESMTP id ; Mon, 5 Nov 2001 11:32:51 -0500 Date: Sat, 3 Nov 2001 16:34:30 -0700 From: Andreas Dilger To: torvalds@transmeta.com, Alan Cox Cc: Tobias Ringstrom , linux-kernel@vger.kernel.org Subject: [PATCH] Davicom net driver jiffies cleanup Message-ID: <20011103163430.B12523@lynx.no> Mail-Followup-To: torvalds@transmeta.com, Alan Cox , Tobias Ringstrom , linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i X-GPG-Key: 1024D/0D35BED6 X-GPG-Fingerprint: 7A37 5D79 BF1B CECA D44F 8A29 A488 39F5 0D35 BED6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org A patch for jiffies cleanup of the Davicom fast ethernet driver (dmfe). The maintainer (Tobias Ringstrom ) 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/ - 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/