lkml.org 
[lkml]   [2011]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] time: Add locking to xtime access in get_seconds()
> I suspect the reason this hasn't been triggered on x86 or power6 is due
> to compiler or processor optimizations reordering the assignment to in
> effect make it atomic. Or maybe the timing window to see the issue is
> harder to observe?

On x86 all aligned stores are atomic. So I don't see how this
could be a problem ever.

Are you saying that on P6 only atomic stores are atomic?

If that's the case again I suspect other code will be affected
too.

-Andi
>


\
 
 \ /
  Last update: 2011-05-05 19:59    [W:0.330 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site