[PARPORT] parport_yield_blocking


Tim Waugh (tim@cyberelk.demon.co.uk)
Fri, 17 Apr 1998 20:16:44 +0100 (BST)


Does this look any better? Now we only schedule if we think the other guy
should have claimed the port but hasn't had chance to yet.

--- /big/linux-2.1.96/include/linux/parport.h Tue Apr 14 23:35:24 1998
+++ linux/include/linux/parport.h Fri Apr 17 20:15:09 1998
@@ -283,6 +283,8 @@
         if ((dev->port->waithead == NULL) || (timeslip < dev->timeslice))
                 return 0;
         parport_release(dev);
+ if (dev->port->cad == NULL)
+ schedule();
         return parport_claim_or_block(dev);
 }
 

Tim.
*/

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:38 EST