[PATCH v5] introduce macro spin_event_timeout()

Scott Wood scottwood at freescale.com
Thu Mar 12 08:03:38 EST 2009


Timur Tabi wrote:
> Scott Wood wrote:
> 
>  > Or you can say that atomic context is outside the scope of this macro.
> 
> No, I don't want to say that.  We have wait_event_timeout() for 
> larger-scale operations.  I'm just looking for something that can 
> replace "while (!condition);"

wait_event_timeout() requires a wait queue.

-Scott



More information about the Linuxppc-dev mailing list