clockintr: add clockintr_advance_random()
authorcheloha <cheloha@openbsd.org>
Tue, 5 Sep 2023 22:25:41 +0000 (22:25 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 5 Sep 2023 22:25:41 +0000 (22:25 +0000)
commitb441a2d80426b78925de2578c3b88e2d61cf4966
treec2e3eb098fada96ada421bc89cc4e5309904638c
parent93774b028bb014ce4ab169916920dbd3c1d521b7
clockintr: add clockintr_advance_random()

Add clockintr_advance_random().  Its sole purpose is to simplify the
implementation of statclock's pseudorandom period.

Ideally, nothing else will use it and we will get rid of it and the
pseudorandom statclock period at some point in the near future.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@
sys/kern/kern_clockintr.c