Re: Q: waiting for a short time and not beeing a resource hog

Jens Axboe (axboe@image.dk)
Wed, 1 Dec 1999 15:17:24 +0000


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/