From: Dave Hart Date: Sun, 9 Oct 2011 20:33:29 +0000 (+0000) Subject: DLM does not want STA_UNSYNC set in kernel when ntpd exits. X-Git-Tag: NTP_4_2_7P221~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8d0aa05200f37146ca6151f42a077955606e97;p=thirdparty%2Fntp.git DLM does not want STA_UNSYNC set in kernel when ntpd exits. bk: 4e920519tgx-mvjR1WLqb_hog6RffQ --- diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index 641d85ad1..0ca46e17c 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -898,14 +898,9 @@ start_kern_loop(void) static void stop_kern_loop(void) { - if (pll_control && kern_enable) { - ZERO(ntv); - ntv.modes = MOD_STATUS; - ntv.status = STA_UNSYNC; - ntp_adjtime(&ntv); + if (pll_control && kern_enable) report_event(EVNT_KERN, NULL, "kernel time sync disabled"); - } } #endif /* KERNEL_PLL */ @@ -1014,18 +1009,7 @@ loop_config( #endif /* LOCKCLOCK */ break; - /* - * Disable the kernel at shutdown. The microkernel just abandons - * ship. The nanokernel carefully cleans up so applications can - * see this. Note the last programmed offset and frequency are - * left in place. - */ case LOOP_KERN_CLEAR: -#ifndef LOCKCLOCK -#ifdef KERNEL_PLL - stop_kern_loop(); -#endif /* KERNEL_PLL */ -#endif /* LOCKCLOCK */ break; /*