]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
From Dave Mills: remove legacy local_refclock/prefer wrinkle.
authorHarlan Stenn <stenn@ntp.org>
Tue, 23 Mar 2004 04:59:43 +0000 (23:59 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 23 Mar 2004 04:59:43 +0000 (23:59 -0500)
bk: 405fc43fnfXzJQyDbDRrrZUzkMvRaQ

ntpd/ntp_loopfilter.c

index 916427294bdeb5f1fb511bc40d4550ef00fdad24..62c3f9258a66c1ba681953f7c47081450596e963 100644 (file)
@@ -714,19 +714,6 @@ adj_host_clock(
        if (!ntp_enable || mode_ntpdate || (pll_control && kern_enable))
                return;
 
-       /*
-        * Intricate wrinkle for legacy only. If the local clock driver
-        * is in use and selected for synchronization, somebody else may
-        * tinker the adjtime() syscall. If this is the case, the driver
-        * is marked prefer and we have to avoid calling adjtime(),
-        * since that may truncate the other guy's requests.
-        */
-       if (sys_peer != 0) {
-               if (sys_peer->refclktype == REFCLK_LOCALCLOCK &&
-                   sys_peer->flags & FLAG_PREFER)
-                       return;
-       }
-
        /*
         * Implement the phase and frequency adjustments. Note the
         * black art formerly practiced here has been whitewashed.