lkml.org 
[lkml]   [2009]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] add function spin_event_timeout()
On 9.3.2009 21:32, Timur Tabi wrote:
> +#define spin_event_timeout(condition, timeout) \
> +({ \
> + int __timeout = timeout; \
> + while (!(condition)&& --__timeout) { \
> + udelay(1); \
> + cpu_relax(); \

So you don't need cpu_relax anymore...

And I would make timeout UL like delay functions.


\
 
 \ /
  Last update: 2009-03-09 21:45    [W:0.054 / U:0.140 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site