[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] time: Add locking to xtime access in get_seconds()
    John Stultz <> writes:

    > From: John Stultz <>
    > So get_seconds() has always been lock free, with the assumption
    > that accessing a long will be atomic.
    > However, recently I came across an odd bug where time() access could
    > occasionally be inconsistent, but only on power7 hardware. The

    Shouldn't a single rmb() be enough to avoid that?

    If not then I suspect there's a lot more code buggy on that CPU than
    just the time.


    -- -- Speaking for myself only

     \ /
      Last update: 2011-05-04 05:55    [W:0.018 / U:44.976 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site