Re: [PARPORT] imm.c schedule loop


Andrea Arcangeli (andrea@e-mind.com)
Fri, 25 Sep 1998 19:04:25 +0200 (CEST)


On Fri, 25 Sep 1998, Tim Waugh wrote:

>- if (imm_pb_claim(i))
>- while (imm_hosts[i].p_busy)
>- schedule(); /* We are safe to schedule here */
>+ if (imm_pb_claim(i)) {
>+ imm_hosts[i].p_busy = 1;
>+ parport_claim_or_block (pb);
>+ imm_hosts[i].p_busy = 0;
>+ }

No, this would _not_ change nothing (it' s only a more efficient
interruptible sleep ;-). The right patch is the one in my first email.

Andrea[s] Arcangeli

-- 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:18:23 EST