Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle a case when TSC goes back for
DistributedMutex
Summary: Based on the [comment][1] form the Linux kernel TSC values might be sligthly off across different sockets: > The regular implementation assumes that clocksource reads are globally > monotonic. The TSC can be slightly off across sockets which can cause > the regular delta calculation (cycles - last) to return a huge time > jump. [1]: https://github.com/torvalds/linux/blob/70d201a40823acba23899342d62bc2644051ad2e/arch/x86/include/asm/vdso/gettimeofday.h#L305-L308 Reviewed By: ot Differential Revision: D52729872 fbshipit-source-id: 69c221839c745ec75a38381c046bfbdda392c175
- Loading branch information