* [Bug 2314] Only enable PPS if kernel consumer binding succeeds.
+* Rename pps_enable to hardpps_enable.
(4.2.7p480) 2014/11/21 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2677] PATH_MAX isn't #define'd under Windows.
Regression from the patch fixing Bug 2639.
extern int ntp_enable; /* clock discipline enabled */
extern int pll_control; /* kernel support available */
extern int kern_enable; /* kernel support enabled */
-extern int pps_enable; /* kernel PPS discipline enabled */
+extern int hardpps_enable; /* kernel PPS discipline enabled */
extern int ext_enable; /* external clock enabled */
extern int cal_enable; /* refclock calibrate enable */
extern int allow_panic; /* allow panic correction */
int ntp_enable = TRUE; /* clock discipline enabled */
int pll_control; /* kernel support available */
int kern_enable = TRUE; /* kernel support enabled */
-int pps_enable; /* kernel PPS discipline enabled */
+int hardpps_enable; /* kernel PPS discipline enabled */
int ext_enable; /* external clock enabled */
int pps_stratum; /* pps stratum */
int allow_panic = FALSE; /* allow panic correction */
/*
* Enable/disable the PPS if requested.
*/
- if (pps_enable) {
+ if (hardpps_enable) {
if (!(pll_status & STA_PPSTIME))
report_event(EVNT_KERN,
NULL, "PPS enabled");
* frequency and jitter.
*/
if ((ntp_adj_ret = ntp_adjtime(&ntv)) != 0) {
- ntp_adjtime_error_handler(__func__, &ntv, ntp_adj_ret, errno, pps_enable, 0, __LINE__ - 1);
+ ntp_adjtime_error_handler(__func__, &ntv, ntp_adj_ret, errno, hardpps_enable, 0, __LINE__ - 1);
}
pll_status = ntv.status;
#ifdef STA_NANO
sys_ttl[i] = (u_char)((i * 256) / MAX_TTL);
sys_ttlmax = i;
}
- pps_enable = 0;
+ hardpps_enable = 0;
stats_control = 1;
}
break;
case PROTO_PPS: /* PPS discipline (pps) */
- pps_enable = value;
+ hardpps_enable = value;
break;
case PROTO_FILEGEN: /* statistics (stats) */
return (0);
}
} else {
- pps_enable = 1;
+ hardpps_enable = 1;
}
}
return (1);
is->flags |= INFO_FLAG_MONITOR;
if (ntp_enable)
is->flags |= INFO_FLAG_NTP;
- if (pps_enable)
+ if (hardpps_enable)
is->flags |= INFO_FLAG_PPS_SYNC;
if (stats_control)
is->flags |= INFO_FLAG_FILEGEN;
"refclock_jupiter: time_pps_kcbind failed: %m");
return (0);
}
- pps_enable = 1;
+ hardpps_enable = 1;
}
/* instance->peer->precision = PPS_PRECISION; */
return (0);
}
- pps_enable = 1;
+ hardpps_enable = 1;
}
return(1);
}
* tell the rest, that we have a kernel PPS source, iff we ever enable HARDPPS
*/
if (mode == PARSE_HARDPPS_ENABLE)
- pps_enable = 1;
+ hardpps_enable = 1;
}
}
* implement fast refclock startup
*
* Revision 4.50 2005/04/16 20:51:35 kardel
- * set pps_enable = 1 when binding a kernel PPS source
+ * set hardpps_enable = 1 when binding a kernel PPS source
*
* Revision 4.49 2005/04/16 17:29:26 kardel
* add non polling clock type 18 for just listenning to Meinberg clocks