summaryrefslogtreecommitdiffstats
path: root/drivers/net/lance.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-11-03 22:49:35 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-09 09:17:56 -0800
commitc63fdf46ad0a7f8fe3c0252a0e763515617e0ea7 (patch)
tree3b0c763708d6c92b48eb6f05a0d9a8a2cc3f4655 /drivers/net/lance.c
parent973a34aa8593dbfe84386343c694f5beecb51d8a (diff)
downloadop-kernel-dev-c63fdf46ad0a7f8fe3c0252a0e763515617e0ea7.zip
op-kernel-dev-c63fdf46ad0a7f8fe3c0252a0e763515617e0ea7.tar.gz
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/lance.c')
-rw-r--r--drivers/net/lance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/lance.c b/drivers/net/lance.c
index f06296b..02336ed 100644
--- a/drivers/net/lance.c
+++ b/drivers/net/lance.c
@@ -207,7 +207,7 @@ tx_full and tbusy flags.
#define LANCE_BUS_IF 0x16
#define LANCE_TOTAL_SIZE 0x18
-#define TX_TIMEOUT 20
+#define TX_TIMEOUT (HZ/5)
/* The LANCE Rx and Tx ring descriptors. */
struct lance_rx_head {
OpenPOWER on IntegriCloud