Date: Tue, 1 Oct 2019 13:11:18 +0200 From: Sebastian Huber <sebastian.huber@embedded-brains.de> To: FreeBSD <freebsd-hackers@freebsd.org> Subject: Why is tc_get_timecount() called two times in tc_init()? Message-ID: <0e27fb3e-0f60-68e1-dbba-f17c3d91c332@embedded-brains.de>
index | next in thread | raw e-mail
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@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0e27fb3e-0f60-68e1-dbba-f17c3d91c332>
