patch-2.1.37 linux/drivers/net/eepro100.c
Next file: linux/drivers/net/eexpress.c
Previous file: linux/drivers/net/eepro.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon May 12 10:35:41 1997
- Orig file:
v2.1.36/linux/drivers/net/eepro100.c
- Orig date:
Wed Apr 23 19:01:19 1997
diff -u --recursive --new-file v2.1.36/linux/drivers/net/eepro100.c linux/drivers/net/eepro100.c
@@ -1033,7 +1033,7 @@
/* Block a timer-based transmit from overlapping. This could better be
done with atomic_swap(1, dev->tbusy), but set_bit() works as well.
If this ever occurs the queue layer is doing something evil! */
- if (set_bit(0, (void*)&dev->tbusy) != 0) {
+ if (test_and_set_bit(0, (void*)&dev->tbusy) != 0) {
int tickssofar = jiffies - dev->trans_start;
if (tickssofar < TX_TIMEOUT - 2)
return 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov