From 336d7bd6fcc63e38c49f467f1dedde1b49223dbf Mon Sep 17 00:00:00 2001 From: cheloha Date: Sun, 23 Apr 2023 00:08:36 +0000 Subject: [PATCH] clockintr_cpu_init: don't update cached uptime clockintr_advance() now calls nsecuptime(9) when called outside clockintr_dispatch(). There is no need for clockintr_cpu_init() to update the queue's cached uptime (cq->cq_uptime) to ensure it is fresh. --- sys/kern/kern_clockintr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index df824f1c4ce..2732e0f95ec 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.20 2023/04/23 00:01:40 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.21 2023/04/23 00:08:36 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn * Copyright (c) 2020 Mark Kettenis @@ -158,8 +158,6 @@ clockintr_cpu_init(const struct intrclock *ic) if (!CPU_IS_PRIMARY(ci) && reset_cq_intrclock) multiplier = CPU_INFO_UNIT(ci); - cq->cq_uptime = nsecuptime(); - /* * The first time we do this, the primary CPU cannot skip any * hardclocks. We can skip hardclocks on subsequent calls because -- 2.20.1