summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-04-23 00:08:37 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-04-23 00:08:37 +0000
commita4a7cdae255fbb485a0a21acb41acac11da96c2c (patch)
tree4b1012d100f56e2a13d3fe046e17b30e48876387 /sys/kern
parentb7f175aedd364a5c62fb64060f52c9695ba72567 (diff)
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.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_clockintr.c4
1 files changed, 1 insertions, 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 <drahn@openbsd.org>
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -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