[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49B57F45.7040104@gmail.com>
Date: Mon, 09 Mar 2009 21:42:45 +0100
From: Jiri Slaby <jirislaby@...il.com>
To: Timur Tabi <timur@...escale.com>
CC: linux-kernel@...r.kernel.org, rdreier@...co.com,
peterz@...radead.org, will.newton@...il.com
Subject: Re: [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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists