[lkml]   [2008]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC patch 08/18] cnt32_to_63 should use smp_rmb()
    Mathieu Desnoyers <> wrote:

    > Assume the time source is a global clock which insures that time will never
    > *ever* go backward. Use a smp_rmb() to make sure the cnt_lo value is read before
    > __m_cnt_hi.

    If you have an smp_rmb(), then don't you need an smp_wmb()/smp_mb() to match
    it to make it work? And is your assumption valid that smp_rmb() will affect
    memory vs the I/O access to read the clock? There's no requirement that
    cnt_lo will have been read from an MMIO location at all.


     \ /
      Last update: 2008-11-07 11:59    [W:0.018 / U:10.176 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site