Re: [PATCH v3] add function spin_event_timeout()

From: Jiri Slaby
Date: Mon Mar 09 2009 - 16:43:18 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/