Re: Scheduling inside bottom-half

Linux Lists (lists@cyclades.com)
Thu, 30 Sep 1999 13:48:35 -0700 (PDT)


On Thu, 30 Sep 1999, B. James Phillippe wrote:

> On Thu, 30 Sep 1999, Linux Lists wrote:
>
> > Once this event occurs, the bottom-half will then "sleep" (using
> > current->timeout / schedule) for one jiffy and then generate the
>
> You may _never_ under any circumstances sleep outside of process context
> (when int_count is non-zero on 2.0 or in_interrupt() returns true in 2.2).
> Sleeping includes the forceful act of sleeping (ex. schedule()) and
> anything that has the potential to sleep, such as non-atomic memory
> allocation.

Thanks for the very good info.

> You will need to find a different way to accomplish what you are trying to
> do. If you need to perform an action at a later point, you can try a
> kernel timer. If you only need to wait for a minute amount of time, you
> can busy wait (such as udelay).

I don't feel comfortable with busy waiting ... Where can I find more info
about how to use kernel timers ??

Thanks again for your help.

Regards,
Ivan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/