lkml.org 
[lkml]   [1999]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mdelay question
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/

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