Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410676
| From | John Stultz <john.stultz@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD |
| Date | 2016-06-01 01:20 +0200 |
| Message-ID | <rF173-wS-7@gated-at.bofh.it> (permalink) |
| References | <rESwO-3JM-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, May 31, 2016 at 6:06 AM, Thomas Graziadei <thomas.graziadei@omicronenergy.com> wrote: > From: Thomas Graziadei <thomas.graziadei@omicronenergy.com> > > The user notices the problem in a raw and real time drift, calling > clock_gettime with CLOCK_REALTIME / CLOCK_MONOTONIC_RAW on a system > with no ntp correction taking place (no ntpd or ptp stuff running). Hmm.. Curious. Was it actually drifting, or was it just oscillating/ringing near the RAW clock's value? > The problem is, that old_vsyscall_fixup adds an extra 1ns even though > xtime_nsec is already held in full nsecs and the remainder in this > case is 0. Do the rounding up buisness only if needed. The patch looks ok. But I'm curious what architecture you were seeing this on (ia64, powerpc?), as it would be much nicer to have those architectures migrate off of the old low-res vsyscall calculation and use the newer method with sub-ns precision, instead of trying to further fix up the deprecated method. I had submitted a patch to convert ia64 awhile back, but I don't recall getting much feedback. thanks -john
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD Thomas Graziadei <thomas.graziadei@omicronenergy.com> - 2016-05-31 16:10 +0200
Re: [PATCH] timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD John Stultz <john.stultz@linaro.org> - 2016-06-01 01:20 +0200
Re: [PATCH] timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD Thomas Graziadei <thomas.graziadei@omicronenergy.com> - 2016-06-01 14:10 +0200
csiph-web