Messages in this thread | | | Date | Tue, 27 Apr 2010 11:00:35 -0700 | From | Jeremy Fitzhardinge <> | Subject | Re: [PATCH 2/6] Add a global synchronization point for pvclock |
| |
On 04/27/2010 06:28 AM, Marcelo Tosatti wrote: >> + last = atomic64_read(&last_value); >> + do { >> + if (ret < last) >> + return last; >> + last = atomic64_cmpxchg(&last_value, last, ret); >> + } while (unlikely(last != ret)); >> > Wraparound? >
If the units nanoseconds, it's good for ~500,000 years of uptime.
J
| |