https://bugzilla.novell.com/show_bug.cgi?id=699400
https://bugzilla.novell.com/show_bug.cgi?id=699400#c8
Stefan Seyfried changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |REOPENED
InfoProvider|seife@novell.slipkontur.de |
--- Comment #8 from Stefan Seyfried 2011-06-14 13:39:40 CEST ---
There is nothing wrong with the bits - just the kernel does not sync the CMOS
clock.
I did the following:
* set the cmos clock wrong (to 09:00)
* reboot
on boot:
Jun 14 09:01:45 nw8000 sntp[3655]: Started sntp
Jun 14 12:48:22 nw8000 ntpd[3664]: ntpd 4.2.6p3@1.2290-o Wed Feb 23 00:32:28
UTC 2011 (1)
Jun 14 12:48:22 nw8000 ntpd[3665]: proto: precision = 1.396 usec
So far, so good.
Now:
nw8000:~ # adjtimex --print|grep status
status: 8193
nw8000:~ # uptime
13:11 up 0:23, 3 users, load average: 0,16, 0,05, 0,09
nw8000:~ # date;hwclock
Di 14. Jun 13:11:24 CEST 2011
Di 14 Jun 2011 09:11:25 CEST -1.015618 seconds
So it looks like only the minutes are actually synchronized.
There is actually a comment in the kernel source arch/x86/kernel/rtc.c:
41 int mach_set_rtc_mmss(unsigned long nowtime)
42 {
..
59 /*
60 * since we're only adjusting minutes and seconds,
61 * don't interfere with hour overflow. This avoids
62 * messing with unknown time zones but requires your
63 * RTC not to be off by more than 15 minutes
64 */
65 real_seconds = nowtime % 60;
66 real_minutes = nowtime / 60;
67 /* correct for half hour time zone */
68 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1)
69 real_minutes += 30;
70 real_minutes %= 60;
71
72 if (abs(real_minutes - cmos_minutes) < 30) {
73 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) {
74 real_seconds = bin2bcd(real_seconds);
75 real_minutes = bin2bcd(real_minutes);
76 }
77 CMOS_WRITE(real_seconds, RTC_SECONDS);
78 CMOS_WRITE(real_minutes, RTC_MINUTES);
79 } else {
80 printk_once(KERN_NOTICE
81 "set_rtc_mmss: can't update from %d to %d\n",
82 cmos_minutes, real_minutes);
83 retval = -1;
84 }
so assuming "kernel is in eleven-minute-mode => CMOS clock is set correctly" is
wrong.
We should set the cmos clock on shutdown, even if the kernel is in
eleven-minute-mode IMHO
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.