clockintr: replace CL_RNDSTAT with global variable statclock_is_randomized
authorcheloha <cheloha@openbsd.org>
Thu, 14 Sep 2023 19:39:47 +0000 (19:39 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 14 Sep 2023 19:39:47 +0000 (19:39 +0000)
commitb3ef18bd4c7a0758527134a7efc06e1f6d79ef23
treed683815caa0b1cba647f8088bf0a393d14e30712
parent9ab2d3bb445c54f7d05a141b1b72e284a59f046c
clockintr: replace CL_RNDSTAT with global variable statclock_is_randomized

In order to separate the statclock from the clock interrupt subsystem
we need to move all statclock state out into the broader kernel.

Start by replacing the CL_RNDSTAT flag with a new global variable,
"statclock_is_randomized", in kern_clock.c.  Update all clockintr_init()
callers to set the boolean instead of passing the flag.

Thread: https://marc.info/?l=openbsd-tech&m=169428749720476&w=2
19 files changed:
sys/arch/amd64/amd64/lapic.c
sys/arch/arm/cortex/agtimer.c
sys/arch/arm/cortex/amptimer.c
sys/arch/arm64/dev/agtimer.c
sys/arch/armv7/omap/dmtimer.c
sys/arch/armv7/omap/gptimer.c
sys/arch/armv7/sunxi/sxitimer.c
sys/arch/hppa/dev/clock.c
sys/arch/i386/i386/lapic.c
sys/arch/loongson/dev/glxclk.c
sys/arch/macppc/macppc/clock.c
sys/arch/mips64/mips64/clock.c
sys/arch/powerpc64/powerpc64/clock.c
sys/arch/riscv64/riscv64/clock.c
sys/arch/sparc64/sparc64/clock.c
sys/kern/kern_clock.c
sys/kern/kern_clockintr.c
sys/sys/clockintr.h
sys/sys/systm.h