To whole list: Where can I get documentation for "schedule" usage?
To Duncan: Can you show how you utilized this in your code or in generic
----- Original Message -----
From: "Duncan Haldane" <email@example.com>
Sent: Friday, December 27, 2002 6:38 PM
Subject: Re: [PARPORT] How can cpu use by the parport be limited? (question
from new cpia driver maintainer)
> On 28-Dec-2002 Alan Cox wrote:
> > On Fri, 2002-12-27 at 21:46, Duncan Haldane wrote
> >> Does anyone has any suggestions for some way I can get my kernel-mode
> >> implementation to behave nicely by not grabbing all available cpu
> > For 2.4 check current->need_resched, 2.5 ditto but kernel pre-empt also
> > helps you out
> > Yes - and current->need_resched says "would have rescheduled you .." so
> > you can use that to call schedule() in loops.
> Thanks! That solved it... works great now!
> -- To unsubscribe, send mail to: firstname.lastname@example.org --
> -- with the single word "unsubscribe" in the body of the message. --
-- To unsubscribe, send mail to: email@example.com --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Mon Dec 30 2002 - 13:43:52 EST