[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BD72643.7050200@goop.org>
Date: Tue, 27 Apr 2010 11:00:35 -0700
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Marcelo Tosatti <mtosatti@...hat.com>
CC: Glauber Costa <glommer@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, avi@...hat.com,
Zachary Amsden <zamsden@...hat.com>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists