Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2003 18:24:24 -0400
From:      "Jeroen C. van Gelderen" <jeroen@vangelderen.org>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_tc.c
Message-ID:  <C67F9624-A75B-11D7-B6EF-000393754B1C@vangelderen.org>
In-Reply-To: <200306252123.h5PLNpgC044447@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@vangelderen.org

Squeeze human nature into the straitjacket of criminal
justice and crime will appear. -- Karl Kraus (1908)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C67F9624-A75B-11D7-B6EF-000393754B1C>