all platforms, main(): call clockqueue_init() just before sched_init_cpu()
authorcheloha <cheloha@openbsd.org>
Thu, 15 Jun 2023 22:18:06 +0000 (22:18 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 15 Jun 2023 22:18:06 +0000 (22:18 +0000)
commit2298d1a8a8b6e5f0218eb7258f4da0805ba10381
treec33d62b6e111fdd1c29bfd030af05293467b0cb3
parent07a746f38f4d8dd0b320c691c8cdf2534db483c0
all platforms, main(): call clockqueue_init() just before sched_init_cpu()

Move the clockqueue_init() call out of clockintr_cpu_init() and up
just before the sched_init_cpu() call for a given CPU.

This will allow sched_init_cpu() to allocate clockintr handles for a
given CPU's scheduler in a later patch.

Link: https://marc.info/?l=openbsd-tech&m=168661507607622&w=2
ok kettenis@, claudio@
15 files changed:
sys/arch/alpha/alpha/cpu.c
sys/arch/amd64/amd64/cpu.c
sys/arch/arm/arm/cpu.c
sys/arch/arm64/arm64/cpu.c
sys/arch/hppa/dev/cpu.c
sys/arch/i386/i386/cpu.c
sys/arch/luna88k/luna88k/machdep.c
sys/arch/macppc/macppc/cpu.c
sys/arch/mips64/mips64/cpu.c
sys/arch/powerpc64/powerpc64/cpu.c
sys/arch/riscv64/riscv64/cpu.c
sys/arch/sparc64/sparc64/cpu.c
sys/kern/init_main.c
sys/kern/kern_clockintr.c
sys/sys/clockintr.h