cvs commit: src/sys/kern kern_tc.c
Jeroen C. van Gelderen
jeroen at vangelderen.org
Wed Jun 25 15:24:26 PDT 2003
On Wednesday, Jun 25, 2003, at 17:23 US/Eastern, Warner Losh wrote:
> imp 2003/06/25 14:23:51 PDT
>
> FreeBSD src repository
>
> Modified files:
> sys/kern kern_tc.c
> Log:
> Fix leap second processing by the kernel time keeping routines.
> Before, we would add/subtract the leap second when the system had
> been
> up for an even multiple of days, rather than at the end of the day,
> as
> a leap second is defined (at least wrt ntp). We do this by
> calculating the notion of UTC earlier in the loop, and passing that
> to
> get it adjusted. Any adjustments that ntp_update_second makes to
> this
> time are then transferred to boot time. We can't pass it either the
> boot time or the uptime because their sum is what determines when a
> leap second is needed. This code adds an extra assignment and two
> extra compare in the typical case, which is as cheap as I could made
> it.
[...]
Exemplary commit message.
-J
--
Jeroen C. van Gelderen - jeroen at vangelderen.org
Squeeze human nature into the straitjacket of criminal
justice and crime will appear. -- Karl Kraus (1908)
More information about the cvs-src
mailing list