* Andrew Morton <[EMAIL PROTECTED]> wrote:

> It sounds like it would work OK.  What is the setup cost for a usleep?  
> I'd have thought that code which does something like
> 
>       while (i++ < 1000) {
>               foo();
>               udelay(1);
>       }
> 
> would take qiute a bit longer with such a change?

full roundtrip cost ought to be below 10 usecs, depending on the system. 
There's no problem doing a non-preemptible udelay up to 10 usecs and we 
could use usleep above that.

        Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to