Re: [PATCH 2/6] Add a global synchronization point for pvclock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux