Re: [PATCH v2] add function spin_event_timeout()

Timur Tabi
2009-03-09T15:34:34Z

Will Newton wrote:

> Are you sure you want to evaluate condition a second time when
> returning? Some memory mapped registers don't have a stable value so
> e.g. the first test could succeed but the return value could still be
> zero.

Ah, good point. I was hoping to keep the loop simple by combining the
two test conditions, but I guess that's not going to work.

v3 coming up.

--
Timur Tabi
Linux kernel developer at Freescale