Revert "clockintr_cpu_init: initialize starting offsets with clockintr_stagger()"
authorcheloha <cheloha@openbsd.org>
Thu, 22 Jun 2023 16:23:50 +0000 (16:23 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 22 Jun 2023 16:23:50 +0000 (16:23 +0000)
commit76f68ffd642506cd16fc7c53d08c95a06ef6f97b
tree78af095690f89f97f938d8392fa2a376bc0b3ef4
parentf0af4d0377b3b106d46974e9cfb11f03d62d6fc5
Revert "clockintr_cpu_init: initialize starting offsets with clockintr_stagger()"

octeon machines do not increment the global variable "ncpus"
(init_main.c) in the same spot as other platforms, which violates the
KASSERT in clockintr_stagger(), causing a panic.

We need to bring octeon's behavior into alignment with every other
platform before proceeding with this patch.

Reported and debugged by bluhm@.
sys/kern/kern_clockintr.c