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

Konstantin Belousov kostikbel at gmail.com
Thu Oct 3 15:57:38 UTC 2019


On Thu, Oct 03, 2019 at 03:24:06PM +0000, Poul-Henning Kamp wrote:
> --------
> 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.
So do you think it makes sense to keep the doubled call at init ?
Or it did not played out and I should commit my patch.


More information about the freebsd-hackers mailing list