patch-2.1.110 linux/drivers/char/lp.c
Next file: linux/drivers/char/lp_m68k.c
Previous file: linux/drivers/char/i2c.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Jul 20 14:00:10 1998
- Orig file:
v2.1.109/linux/drivers/char/lp.c
- Orig date:
Thu Jul 16 18:09:24 1998
diff -u --recursive --new-file v2.1.109/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -156,7 +156,7 @@
{
if (!parport_yield_blocking (lp_table[minor].dev))
{
- if (need_resched)
+ if (current->need_resched)
schedule ();
} else
lp_table[minor].irq_missed = 1;
@@ -499,7 +499,7 @@
status = (r_str(minor) & 0x40);
udelay(50);
counter++;
- if (need_resched)
+ if (current->need_resched)
schedule ();
} while ((status == 0x40) && (counter < 20));
if (counter == 20) {
@@ -519,7 +519,7 @@
status=(r_str(minor) & 0x40);
udelay(20);
counter++;
- if (need_resched)
+ if (current->need_resched)
schedule ();
} while ( (status == 0) && (counter < 20) );
if (counter == 20) { /* Timeout */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov