summaryrefslogtreecommitdiffstats
path: root/drivers/net/atarilance.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-11-03 23:49:35 +0100
committerDavid S. Miller <davem@davemloft.net>2010-11-09 18:17:56 +0100
commitc63fdf46ad0a7f8fe3c0252a0e763515617e0ea7 (patch)
tree3b0c763708d6c92b48eb6f05a0d9a8a2cc3f4655 /drivers/net/atarilance.c
parentaf_unix: optimize unix_dgram_poll() (diff)
downloadlinux-c63fdf46ad0a7f8fe3c0252a0e763515617e0ea7.tar.xz
linux-c63fdf46ad0a7f8fe3c0252a0e763515617e0ea7.zip
drivers/net: normalize TX_TIMEOUT
Some network drivers use old TX_TIMEOUT definitions, assuming HZ=100 of old kernels. Convert these definitions to include HZ, since HZ can be 1000 these days. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atarilance.c')
-rw-r--r--drivers/net/atarilance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c
index 8cb27cb7bca1..ce0091eb06f5 100644
--- a/drivers/net/atarilance.c
+++ b/drivers/net/atarilance.c
@@ -116,7 +116,7 @@ MODULE_LICENSE("GPL");
#define RX_RING_LEN_BITS (RX_LOG_RING_SIZE << 5)
#define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
-#define TX_TIMEOUT 20
+#define TX_TIMEOUT (HZ/5)
/* The LANCE Rx and Tx ring descriptors. */
struct lance_rx_head {