summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-06-15 22:18:09 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-06-15 22:18:09 +0000
commit3cb953fe237b69b45b174885a22b34c51a3ae653 (patch)
treea21545be6f6685add4fbaf0ed607ccf08fdb1e36 /sys/arch/mips64
parent89a5b2a64acd4dceab0bb098f91d3d631dddef7c (diff)
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@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c
index 83f75fb8c4d..4e4a89976dc 100644
--- a/sys/arch/mips64/mips64/cpu.c
+++ b/sys/arch/mips64/mips64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.82 2022/04/06 18:59:26 naddy Exp $ */
+/* $OpenBSD: cpu.c,v 1.83 2023/06/15 22:18:07 cheloha Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@ -395,6 +395,7 @@ cpu_boot_secondary_processors(void)
continue;
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;
+ clockqueue_init(&ci->ci_queue);
sched_init_cpu(ci);
cpu_boot_secondary(ci);
}