diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-06-15 22:18:09 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-06-15 22:18:09 +0000 |
commit | 3cb953fe237b69b45b174885a22b34c51a3ae653 (patch) | |
tree | a21545be6f6685add4fbaf0ed607ccf08fdb1e36 /sys/arch/alpha | |
parent | 89a5b2a64acd4dceab0bb098f91d3d631dddef7c (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/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/cpu.c b/sys/arch/alpha/alpha/cpu.c index e2c1671497e..03d035c3100 100644 --- a/sys/arch/alpha/alpha/cpu.c +++ b/sys/arch/alpha/alpha/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.46 2022/12/10 15:02:29 cheloha Exp $ */ +/* $OpenBSD: cpu.c,v 1.47 2023/06/15 22:18:06 cheloha Exp $ */ /* $NetBSD: cpu.c,v 1.44 2000/05/23 05:12:53 thorpej Exp $ */ /*- @@ -597,6 +597,7 @@ cpu_hatch(struct cpu_info *ci) ALPHA_TBIA(); alpha_pal_imb(); + clockqueue_init(&ci->ci_queue); KERNEL_LOCK(); sched_init_cpu(ci); nanouptime(&ci->ci_schedstate.spc_runtime); |