lkml.org 
[lkml]   [1999]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Scheduling inside bottom-half

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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.055 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site