]>
Commit | Line | Data |
---|---|---|
6fca7355 ER |
1 | diff -up ntp-4.2.4p7/include/ntp_syscall.h.stamode ntp-4.2.4p7/include/ntp_syscall.h |
2 | --- ntp-4.2.4p7/include/ntp_syscall.h.stamode 2004-02-25 06:57:56.000000000 +0100 | |
3 | +++ ntp-4.2.4p7/include/ntp_syscall.h 2009-05-19 10:21:34.000000000 +0200 | |
4 | @@ -14,6 +14,10 @@ | |
5 | # include <sys/timex.h> | |
6 | #endif | |
7 | ||
8 | +#ifndef STA_MODE | |
9 | +#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */ | |
10 | +#endif | |
11 | + | |
12 | #ifndef NTP_SYSCALLS_LIBC | |
13 | #ifdef NTP_SYSCALLS_STD | |
14 | # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) | |
15 | diff -up ntp-4.2.4p7/ntpd/ntp_loopfilter.c.stamode ntp-4.2.4p7/ntpd/ntp_loopfilter.c | |
16 | --- ntp-4.2.4p7/ntpd/ntp_loopfilter.c.stamode 2009-05-19 10:20:03.000000000 +0200 | |
17 | +++ ntp-4.2.4p7/ntpd/ntp_loopfilter.c 2009-05-19 10:25:22.000000000 +0200 | |
18 | @@ -644,7 +644,7 @@ local_clock( | |
19 | "kernel time sync error %04x", ntv.status); | |
20 | ntv.status &= ~(STA_PPSFREQ | STA_PPSTIME); | |
21 | } else { | |
22 | - if ((ntv.status ^ pll_status) & ~STA_FLL) | |
23 | + if ((ntv.status ^ pll_status) & ~(STA_FLL | STA_MODE)) | |
24 | NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT) | |
25 | msyslog(LOG_NOTICE, | |
26 | "kernel time sync status change %04x", |