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, 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.

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).

-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


-
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    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site