From: cheloha Date: Fri, 21 Apr 2023 03:03:50 +0000 (+0000) Subject: clockintr_cpu_init: fix clockintr staggering X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fa0435f218c61b6bdbca6e4e1f78502fe39a3b7b;p=openbsd clockintr_cpu_init: fix clockintr staggering Use reset_cq_intrclock as a stand-in for the CQ_INTRCLOCK flag when deciding whether to stagger clockintr expirations across CPUs. --- diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index 1bb957b7cb0..af6198cb373 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.14 2023/04/21 02:41:06 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.15 2023/04/21 03:03:50 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn * Copyright (c) 2020 Mark Kettenis @@ -158,7 +158,7 @@ clockintr_cpu_init(const struct intrclock *ic) * anyway. The primary CPU's starting offset is always zero, so * leave the multiplier zero. */ - if (!CPU_IS_PRIMARY(ci) && ISSET(cq->cq_flags, CQ_INTRCLOCK)) + if (!CPU_IS_PRIMARY(ci) && reset_cq_intrclock) multiplier = CPU_INFO_UNIT(ci); cq->cq_uptime = nsecuptime();