diff options
author | Sami Kerola | 2019-01-07 22:34:11 +0100 |
---|---|---|
committer | Sami Kerola | 2019-01-12 09:46:54 +0100 |
commit | f78a90217447b10cb52c2789d88da07088b37425 (patch) | |
tree | 76b4cb8d6a1fa5e29cf38c3c0af1bde76cf1bf40 /sys-utils/Makemodule.am | |
parent | include: add indirect monotonic clock id specifier (diff) | |
download | kernel-qcow2-util-linux-f78a90217447b10cb52c2789d88da07088b37425.tar.gz kernel-qcow2-util-linux-f78a90217447b10cb52c2789d88da07088b37425.tar.xz kernel-qcow2-util-linux-f78a90217447b10cb52c2789d88da07088b37425.zip |
hwclock: use monotonic time to measure how long setting time takes
Earlier gettimeofday() was affected by discontinuous jumps. Measuring how
long time it takes to set time using function that effected by the very
thing being measured makes head spin. Lets make this less confusing with
monotonic clock that ticks on without jumps.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 825a7335b..fdecbfac4 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -454,7 +454,9 @@ hwclock_SOURCES = \ sys-utils/hwclock.h \ sys-utils/hwclock-cmos.c if LINUX -hwclock_SOURCES += sys-utils/hwclock-rtc.c +hwclock_SOURCES += \ + sys-utils/hwclock-rtc.c \ + lib/monotonic.c endif hwclock_LDADD = $(LDADD) libcommon.la -lm if HAVE_AUDIT |