Simplified NTP kernel interface:
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 14 Apr 2005 07:55:36 +0000 (07:55 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 14 Apr 2005 07:55:36 +0000 (07:55 +0000)
commit4026c000abbd5721abb23b1c977a77a42d7bf658
treec2b5d23e1795ecee89c7f28790223791a129d6b4
parentbd92655d7c70fac562ba08953b6b70bca6880f15
Simplified NTP kernel interface:
- kern.ntp.delta gives the delta to apply (ns)
- kern.ntp.tick_delta is the correction applied in each tick (ns)
- kern.ntp.default_tick_delta is the default correction for each tick (ns)
- kern.ntp.big_delta is the threshold for kern.ntp.delta to use
  10x kern.ntp.default_tick_delta, not the normal value
- kern.ntp.adjust can be used to change the current value of kern.ntp.delta
  relatively.
- kern.ntp.next_leaf_second specifies the time_t of the next leaf second change,
  kern.ntp.insert_leaf_second != 0 means a leaf second is inserted, otherwise
  it is removed

All ntp_* variables are manipulated on CPU #0 with the exception of
set_timeofday. It just sets ntp_delta to 0, which is fine for the moment.
sys/kern/kern_clock.c
sys/kern/kern_time.c
sys/kern/subr_param.c
sys/sys/kernel.h
sys/sys/time.h