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

From: Nate (nate@uniwest.com)
Date: Mon Dec 30 2002 - 13:33:32 EST

  • Next message: M Aguilar: "[PARPORT] Imation LS-120"

    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
    code?

    Thank You,

    Nate

    ----- Original Message -----
    From: "Duncan Haldane" <f.duncan.m.haldane@worldnet.att.net>
    To: <linux-parport@torque.net>
    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
    > >
    > <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. --
    >
    >

    -- 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 : Mon Dec 30 2002 - 13:43:52 EST