Re: mdelay question

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Fri, 26 Mar 1999 15:17:31 +0000 (GMT)


On Fri, 26 Mar 1999, Alan Cox wrote:

> > > while(time_before(time, jiffies))
> > > schedule();

> > Don't we now have schedule_timeout() to do this?
>
> You've always been able to do that- this is a bad example of what I meant
> sorry.
>
> Instead think of
> while(time_before(time, jiffies))
> {
> if(inb(driver->port+STATUS)&0x01)
> break;
> schedule();
> }
>
> which is the case I meant - where you need to wait for a driver to do
> something slow, polled and can't just delay.

Ah sorry, yes. Didn't mingo have some nice macros to do things like this?

Matthew.

-
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/