summaryrefslogtreecommitdiffstats
path: root/hwclock/clock.h
diff options
context:
space:
mode:
authorKarel Zak2007-03-20 00:32:37 +0100
committerKarel Zak2007-03-20 00:32:37 +0100
commit99c392d8ba163e35b9d562dd4bcf7dd476ad3573 (patch)
tree3f6a3aa7805518129638b39442d1e48538b1d78a /hwclock/clock.h
parenttests: add hwclock systohc test (diff)
downloadkernel-qcow2-util-linux-99c392d8ba163e35b9d562dd4bcf7dd476ad3573.tar.gz
kernel-qcow2-util-linux-99c392d8ba163e35b9d562dd4bcf7dd476ad3573.tar.xz
kernel-qcow2-util-linux-99c392d8ba163e35b9d562dd4bcf7dd476ad3573.zip
hwclock: fix --systohc sets clock 0.5 seconds slow
quote from rh150493: The kernel code, when setting the BIOS clock notes that the clock time ticks to the next second 0.5 seconds after adjusting it (see linux/arch/i386/kernel/time.c). hwclock --systohc sets the CMOS clock at the 1 second boundry and thus causes the clock to be wrong by 500ms each time it is reset. If the clock is set every shutdown then the clock will have a reboot-count related drift as well as the natural drift problems of the clock. Note that this also mucks up the drift calculations, of course. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/clock.h')
0 files changed, 0 insertions, 0 deletions