]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
DLM does not want STA_UNSYNC set in kernel when ntpd exits.
authorDave Hart <hart@ntp.org>
Sun, 9 Oct 2011 20:33:29 +0000 (20:33 +0000)
committerDave Hart <hart@ntp.org>
Sun, 9 Oct 2011 20:33:29 +0000 (20:33 +0000)
bk: 4e920519tgx-mvjR1WLqb_hog6RffQ

ntpd/ntp_loopfilter.c

index 641d85ad14899fd97f36ceb324739aa603dbb3d1..0ca46e17cc9eaf4b05ac6640bc2bb13de4f0b107 100644 (file)
@@ -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;
 
        /*