CVSROOT: /cvs Module name: src Changes by: chel...@cvs.openbsd.org 2021/06/19 07:49:39
Modified files: sys/kern : kern_tc.c sys/sys : time.h Log message: timecounting: add FRAC_TO_NSEC(), BINTIME_TO_NSEC() Refactor the fraction-to-nanosecond conversion from BINTIME_TO_TIMESPEC() into a dedicated routine, FRAC_TO_NSEC(), so we can reuse it elsewhere. Then add a new BINTIME_TO_NSEC() function to sys/time.h to deduplicate conversion code in nsecuptime(), getnsecuptime(), and tc_setclock(). Thread: https://marc.info/?l=openbsd-tech&m=162376993926751&w=2 ok dlg@