Re: [PARPORT] Polling/IRQ


Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 11 Apr 1998 13:07:50 +0100 (BST)


On Fri, 10 Apr 1998, Mark Hinds wrote:

> With out lots of further verbage, here's a path that makes things
> go fast again in IRQ mode. Basically it allows the LP_READY polling
> count to be applied in IRQ mode as well as POLLING mode. I believe
> this is the right thing to do and would like to see this incorporated
> into 2.1.95 if possible.

Does this patch have the same effect?

Tim.
*/

--- linux/drivers/char/lp.c.orig Thu Apr 9 01:27:12 1998
+++ linux/drivers/char/lp.c Sat Apr 11 13:06:51 1998
@@ -166,12 +166,12 @@
         struct lp_stats *stats;
 
         for (;;) {
- lp_yield(minor);
                 status = r_str (minor);
                 if (++count == LP_CHAR(minor))
                         return 0;
                 if (LP_POLLING(minor))
                 {
+ lp_yield (minor);
                         if (LP_READY(minor, status))
                                 break;
                 } else {

-- 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:36 EST