Disable clockcheck and kernel leap with ntpshm servo.
Always disable the clock sanity check when the ntpshm servo is used, because it doesn't know when or how is the clock adjusted. Disable also the kernel leap option as the process controlling the clock is responsible for setting the kernel flag. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
97f72ceecc
commit
93b7807aad
|
@ -1324,6 +1324,11 @@ int main(int argc, char *argv[])
|
|||
goto bad_usage;
|
||||
}
|
||||
|
||||
if (node.servo_type == CLOCK_SERVO_NTPSHM) {
|
||||
node.kernel_leap = 0;
|
||||
node.sanity_freq_limit = 0;
|
||||
}
|
||||
|
||||
print_set_progname(progname);
|
||||
print_set_verbose(verbose);
|
||||
print_set_syslog(use_syslog);
|
||||
|
|
4
ptp4l.c
4
ptp4l.c
|
@ -300,6 +300,10 @@ int main(int argc, char *argv[])
|
|||
ds->flags & DDS_SLAVE_ONLY) {
|
||||
ds->clockQuality.clockClass = 255;
|
||||
}
|
||||
if (cfg_settings.clock_servo == CLOCK_SERVO_NTPSHM) {
|
||||
cfg_settings.dds.kernel_leap = 0;
|
||||
cfg_settings.dds.sanity_freq_limit = 0;
|
||||
}
|
||||
|
||||
print_set_progname(progname);
|
||||
print_set_verbose(cfg_settings.verbose);
|
||||
|
|
Loading…
Reference in New Issue