Updates to the ntp pll from John Hay.

Submitted by:	jhay
This commit is contained in:
Poul-Henning Kamp 2000-09-10 09:13:34 +00:00
parent 688088f7f7
commit 8925e63cd3

View File

@ -149,7 +149,6 @@ static long time_tick; /* nanoseconds per tick (ns) */
static l_fp time_offset; /* time offset (ns) */
static l_fp time_freq; /* frequency offset (ns/s) */
static l_fp time_adj; /* tick adjust (ns/s) */
static l_fp time_phase; /* time phase (ns) */
#ifdef PPS_SYNC
/*
@ -168,7 +167,6 @@ static l_fp time_phase; /* time phase (ns) */
static struct timespec pps_tf[3]; /* phase median filter */
static l_fp pps_freq; /* scaled frequency offset (ns/s) */
static long pps_lastfreq; /* last scaled freq offset (ns/s) */
static long pps_fcount; /* frequency accumulator */
static long pps_jitter; /* nominal jitter (ns) */
static long pps_stabil; /* nominal stability (scaled ns/s) */
@ -212,6 +210,7 @@ ntp_sysctl(SYSCTL_HANDLER_ARGS)
ntv.maxerror = time_maxerror;
ntv.esterror = time_esterror;
ntv.tai = time_tai;
ntv.time_state = time_state;
/*
* Status word error decode. If any of these conditions occur,
@ -253,6 +252,7 @@ SYSCTL_PROC(_kern_ntp_pll, OID_AUTO, gettime, CTLTYPE_OPAQUE|CTLFLAG_RD,
#ifdef PPS_SYNC
SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shiftmax, CTLFLAG_RW, &pps_shiftmax, 0, "");
SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shift, CTLFLAG_RW, &pps_shift, 0, "");
SYSCTL_INT(_kern_ntp_pll, OID_AUTO, time_monitor, CTLFLAG_RD, &time_monitor, 0, "");
SYSCTL_OPAQUE(_kern_ntp_pll, OID_AUTO, pps_freq, CTLFLAG_RD, &pps_freq, sizeof(pps_freq), "I", "");
SYSCTL_OPAQUE(_kern_ntp_pll, OID_AUTO, time_freq, CTLFLAG_RD, &time_freq, sizeof(time_freq), "I", "");