Re: [PARPORT] How can cpu use by the parport be limited? (question from new cpia driver maintainer)

From: Duncan Haldane (f.duncan.m.haldane@worldnet.att.net)
Date: Fri Dec 27 2002 - 21:38:11 EST

  • Next message: Z F: "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
    >
    <snip>
    >
    > 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!

    Duncan

    -- 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 2b29 : Fri Dec 27 2002 - 21:40:12 EST