Re: Atomic test and set patches (was Re: ppp and other problems)

Richard Henderson (richard@atheist.tamu.edu)
Sun, 1 Sep 1996 03:47:20 -0500 (CDT)


I forgot to mention that the patch was relative to something
close to 2.0.14. Additionally, I've since found the following.

r~

--- linux/drivers/net/slip.c Sat Aug 31 22:43:50 1996
+++ linux-mine/drivers/net/slip.c Sat Aug 31 22:29:45 1996
@@ -1381,7 +1381,7 @@
unsigned char s = END;
#endif
/* put END into tty queue. Is it right ??? */
- if (!test_bit(0, (void *) &sl->dev->tbusy))
+ if (!sl->dev->tbusy)
{
/* if device busy no outfill */
sl->tty->driver.write(sl->tty, 0, &s, 1);
--- linux/drivers/net/eexpress.c Sat Aug 31 22:43:50 1996
+++ linux-mine/drivers/net/eexpress.c Sat Aug 31 22:30:10 1996
@@ -856,7 +856,7 @@
unsigned short tx_block = lp->tx_reap;
unsigned short status;

- if (!test_bit(0,(void *)&dev->tbusy) && lp->tx_head==lp->tx_reap)
+ if (!dev->tbusy && lp->tx_head==lp->tx_reap)
return 0x0000;

do