Deleted Added
full compact
kern_ntptime.c (170732) kern_ntptime.c (177253)
1/*-
2 ***********************************************************************
3 * *
4 * Copyright (c) David L. Mills 1993-2001 *
5 * *
6 * Permission to use, copy, modify, and distribute this software and *
7 * its documentation for any purpose and without fee is hereby *
8 * granted, provided that the above copyright notice appears in all *

--- 17 unchanged lines hidden (view full) ---

26 * in this file.
27 *
28 * Only minor changes done to interface with the timecounters over in
29 * sys/kern/kern_clock.c. Some of the comments below may be (even more)
30 * confusing and/or plain wrong in that context.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 ***********************************************************************
3 * *
4 * Copyright (c) David L. Mills 1993-2001 *
5 * *
6 * Permission to use, copy, modify, and distribute this software and *
7 * its documentation for any purpose and without fee is hereby *
8 * granted, provided that the above copyright notice appears in all *

--- 17 unchanged lines hidden (view full) ---

26 * in this file.
27 *
28 * Only minor changes done to interface with the timecounters over in
29 * sys/kern/kern_clock.c. Some of the comments below may be (even more)
30 * confusing and/or plain wrong in that context.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/kern/kern_ntptime.c 170732 2007-06-14 18:37:58Z rwatson $");
34__FBSDID("$FreeBSD: head/sys/kern/kern_ntptime.c 177253 2008-03-16 10:58:09Z rwatson $");
35
36#include "opt_ntp.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/sysproto.h>
41#include <sys/kernel.h>
42#include <sys/priv.h>

--- 582 unchanged lines hidden (view full) ---

625 pps_tf[0].tv_sec = pps_tf[0].tv_nsec = 0;
626 pps_tf[1].tv_sec = pps_tf[1].tv_nsec = 0;
627 pps_tf[2].tv_sec = pps_tf[2].tv_nsec = 0;
628 pps_fcount = 0;
629 L_CLR(pps_freq);
630#endif /* PPS_SYNC */
631}
632
35
36#include "opt_ntp.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/sysproto.h>
41#include <sys/kernel.h>
42#include <sys/priv.h>

--- 582 unchanged lines hidden (view full) ---

625 pps_tf[0].tv_sec = pps_tf[0].tv_nsec = 0;
626 pps_tf[1].tv_sec = pps_tf[1].tv_nsec = 0;
627 pps_tf[2].tv_sec = pps_tf[2].tv_nsec = 0;
628 pps_fcount = 0;
629 L_CLR(pps_freq);
630#endif /* PPS_SYNC */
631}
632
633SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, ntp_init, NULL)
633SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, ntp_init, NULL);
634
635/*
636 * hardupdate() - local clock update
637 *
638 * This routine is called by ntp_adjtime() to update the local clock
639 * phase and frequency. The implementation is of an adaptive-parameter,
640 * hybrid phase/frequency-lock loop (PLL/FLL). The routine computes new
641 * time and frequency offset estimates for each call. If the kernel PPS

--- 333 unchanged lines hidden ---
634
635/*
636 * hardupdate() - local clock update
637 *
638 * This routine is called by ntp_adjtime() to update the local clock
639 * phase and frequency. The implementation is of an adaptive-parameter,
640 * hybrid phase/frequency-lock loop (PLL/FLL). The routine computes new
641 * time and frequency offset estimates for each call. If the kernel PPS

--- 333 unchanged lines hidden ---