diff options
author | Thomas Graziadei <[email protected]> | 2016-05-31 15:06:06 +0200 |
---|---|---|
committer | John Stultz <[email protected]> | 2016-06-20 12:46:45 -0700 |
commit | 0209b937569a133dedfe930cdfff3a0d1d68c9e9 (patch) | |
tree | a35461164f667e343c98731f7f781d3e0b422890 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0fb71d340d355156818bb53eb36ae79a3f88bda9 (diff) |
timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD
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).
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.
Cc: Prarit Bhargava <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Graziadei <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions