]> err.no Git - util-linux/commit
hwclock: use carefully synchronize_to_clock_tick() return codes
authorKarel Zak <kzak@redhat.com>
Fri, 8 Aug 2008 23:22:08 +0000 (01:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Aug 2008 09:40:23 +0000 (11:40 +0200)
commit3b96a7acbc8e3805c6af6c3e185f007b1d68118d
treefeca7833dc2e4d6dd270f39fcfae908b94af0e0d
parente8abdb315028d2bb7d1ced187169c8026af656cb
hwclock: use carefully synchronize_to_clock_tick() return codes

* It seems that

rtc-isl1208 0-006f: chip found, driver version 0.3
rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0
rtc-isl1208 0-006f: rtc power failure detected, please set clock.

  causes that hardware clock returns persistent time and synchronization
  is impossible. The hwclock(8) has to ignore this problem and allows to
  set clock anyway.

* synchronize_to_clock_tick() shouldn't to print the "...got clock tick"
  debug message in case of failure.

Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock/hwclock.c