Why is tc_get_timecount() called two times in tc_init()?

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Oct 3 15:24:18 UTC 2019


--------
In message <CANCZdfpcOBJiYAKafhiWZS2g4vnLGVvzqhaOXetSSnU2Hj91nw at mail.gmail.com>
, Warner Losh writes:

>I think this is a good fix. I recall phk saying it was more paranoia for
>edge cases than really needed in a private email to me, but it's in the
>'gap' of email that I lost in a disk crash 12 years ago so I can't find it
>for sure.

I think the original reason for this was (locked) delta-based
timecounters, (ie counters which roll over rapidly) in order that
their first "real" use would not return truly bogus values.

-- 
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-hackers mailing list