lkml.org 
[lkml]   [2005]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [OT] volatile keyword
From
Date
On Iau, 2005-08-25 at 15:26 -0600, Christopher Friesen wrote:
> > do
> > expires = timr->it_timer.expires;
> > while ((volatile long) (timr->it_timer.expires) != expires);
> >
> > Seems it's casting the value, not the pointer.
>
> Someone else will have to give the definitive answer, but it looks
> suspicious to me...

It really ought to be using rmb() in this case not volatile casting

Alan

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

\
 
 \ /
  Last update: 2005-08-26 17:22    [W:0.080 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site