Why is tc_get_timecount() called two times in tc_init()?
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Oct 1 11:11:23 UTC 2019
Hello,
since this commit
https://github.com/freebsd/freebsd/commit/307f787e5a7f
tc_get_timecount() is called two times in tc_init().
/*
* Initialize a new timecounter and possibly use it.
*/
void
tc_init(struct timecounter *tc)
{
[...]
if (tc->tc_quality == timecounter->tc_quality &&
tc->tc_frequency < timecounter->tc_frequency)
return;
(void)tc->tc_get_timecount(tc);
(void)tc->tc_get_timecount(tc);
timecounter = tc;
}
What is the reason for this procedure?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the freebsd-hackers
mailing list