clockintr: clockintr_cpu_init(): isolate struct clockintr_queue setup
authorcheloha <cheloha@openbsd.org>
Mon, 3 Apr 2023 17:40:51 +0000 (17:40 +0000)
committercheloha <cheloha@openbsd.org>
Mon, 3 Apr 2023 17:40:51 +0000 (17:40 +0000)
commitbdd1445da1dd9c39177516ec9c8711bd079a89a1
tree3e8d9fda00cb19105c6c6e445d28f549501383e4
parent0ebc3444e13935a453808f08eedd88397e7f2302
clockintr: clockintr_cpu_init(): isolate struct clockintr_queue setup

We will always need to initialize the clockintr_queue struct.
However, the hardclock, schedclock, and statclock will not always be a
part of that struct.  Move the clockintr_establish() calls in
clockintr_cpu_init() away from the other initialization steps to make
the dependency relationship more obvious.  We need to intialize a
struct clockintr_queue before we can establish clock interrupts.
sys/kern/kern_clockintr.c