[PATCH 2.5] net/pcmcia fix fast_poll timers (HZ > 100)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i think we want fast_poll to behave the same with HZ=100 and HZ=1000


--- 1.18/drivers/net/pcmcia/3c574_cs.c	Mon Jun 23 23:45:40 2003
+++ edited/3c574_cs.c	Mon Jun 30 21:42:46 2003
@@ -1048,7 +1048,7 @@
 	}
 	if (lp->fast_poll) {
 		lp->fast_poll--;
-		lp->media.expires = jiffies + 2;
+		lp->media.expires = jiffies + 2*HZ/100;
 		add_timer(&lp->media);
 		return;
 	}
--- 1.18/drivers/net/pcmcia/3c589_cs.c	Tue Jun 24 01:24:48 2003
+++ edited/3c589_cs.c	Mon Jun 30 21:43:04 2003
@@ -921,7 +921,7 @@
     }
     if (lp->fast_poll) {
 	lp->fast_poll--;
-	lp->media.expires = jiffies + 1;
+	lp->media.expires = jiffies + HZ/100;
 	add_timer(&lp->media);
 	return;
     }
--- 1.19/drivers/net/pcmcia/smc91c92_cs.c	Wed Jun 25 00:07:31 2003
+++ edited/smc91c92_cs.c	Mon Jun 30 21:43:26 2003
@@ -1996,7 +1996,7 @@
     }
     if (smc->fast_poll) {
 	smc->fast_poll--;
-	smc->media.expires = jiffies + 1;
+	smc->media.expires = jiffies + HZ/100;
 	add_timer(&smc->media);
 	SMC_SELECT_BANK(saved_bank);
 	return;

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux