clockintr, scheduler: move statclock handle from clockintr_queue to schedstate_percpu
authorcheloha <cheloha@openbsd.org>
Thu, 14 Sep 2023 22:07:11 +0000 (22:07 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 14 Sep 2023 22:07:11 +0000 (22:07 +0000)
commita332869ab2345858bff8ccd1725674b106eafb6f
tree86716d96ee10fd67e2735e8d9d091fc28e6620b8
parentf36eae229c7167bc31605e12863e63abe756c8c8
clockintr, scheduler: move statclock handle from clockintr_queue to schedstate_percpu

Move the statclock handle from clockintr_queue.cq_statclock to
schedstate_percpu.spc_statclock.  Establish spc_statclock during
sched_init_cpu() alongside the other scheduler clock interrupts.

Thread: https://marc.info/?l=openbsd-tech&m=169428749720476&w=2
sys/kern/kern_clockintr.c
sys/kern/kern_sched.c
sys/sys/clockintr.h
sys/sys/sched.h