[lkml]   [2009]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] add function spin_event_timeout()
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

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