lkml.org 
[lkml]   [1999]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Q: waiting for a short time and not beeing a resource hog
On Wed, Dec 01 1999, Andreas Schuldei wrote:
[waiting inside isr]
> > Not in an interrupt context. Basically you can't sleep or
> > schedule inside an interrupt handler. How long do you need
> > to wait?
>
> for 50 us (10000 ticks on a 200MHz machine).

Bad hardware?

> Is
> schedule_timeout(ticks)
>
> any better? I see it beeing used quite a lot in nowerdays kernels

No, it is essentially the same thing. You must not force a schedule
at interrupt time.

--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* http://www.kernel.dk

-
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:55    [W:0.266 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site