]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: persistent_clock_is_local
authorJ William Piggott <elseifthen@gmx.com>
Thu, 25 Sep 2014 11:38:25 +0000 (07:38 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Wed, 15 Oct 2014 18:45:29 +0000 (14:45 -0400)
commitd17a12a3685945e7d5579db491543d223618d060
tree67325e74bcc60f94277ecf71c259e5ddfe3d16b9
parentcb7efbc12de4bd9468344875af7b17cc19adcc50
hwclock: persistent_clock_is_local

When hctosys is used at boot time, making it the
first caller of settimeofday, the responsibility
of setting persistent_clock_is_local is thrust
upon it.  Currently hctosys always leaves this
variable uninitialized.  This causes a Hardware
Clock configured to use the local timescale to be
clobbered with the UTC timescale by the kernel's
NTP eleven minute mode.

This patch fixes this hctosys bug, by having it
properly set persistent_clock_is_local according
to the time scale configured for the Hardware
Clock.

It does this via the kernel warp_clock function
but this in inconsequential, because we set the
system time immediately afterward.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c