CVSROOT: /cvs Module name: src Changes by: chel...@cvs.openbsd.org 2023/10/11 09:42:44
Modified files: sys/sys : resourcevar.h sched.h systm.h sys/kern : kern_clock.c sched_bsd.c subr_prof.c Log message: kernel: expand fixed clock interrupt periods to 64-bit values Technically, all the current fixed clock interrupt periods fit within an unsigned 32-bit value. But 32-bit multiplication is an accident waiting to happen. So, expand the fixed periods for hardclock, statclock, profclock, and roundrobin to 64-bit values. One exception: statclock_mask remains 32-bit because random(9) yields 32-bit values. Update the initclocks() comment to make it clear that this is not an accident.