time_second vs. time_uptime

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Sep 10 01:22:48 PDT 2005


In message <200509091744.26505.jkim at FreeBSD.org>, Jung-uk Kim writes:
>If I read the source correctly, time_second can go backwards or 
>forwards when there is a leap second but time_uptime cannot.  Am I 
>right?

Correct.

>If my assumption is right, it seems we have some misuses in 
>kernel, e. g., sched_sync() in sys/kern/vfs_subr.c.  It may not be 
>critical but it worries me a little because a leap second is 
>scheduled to occur at the end of this year. ;-)

Yes, almost nothing should use time_second in the kernel.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list