summaryrefslogtreecommitdiff
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-07-20 21:51:35 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-07-20 21:51:35 +0000
commite0a1a310aa15e53f8698f2aaa222e889a3ca55ac (patch)
treed259b70024d2947f0b48c9157f1559c174b3d4e8 /sys/kern/kern_tc.c
parent9ca3aedba313b5c8dc0d5bd55cc32aaf8269872f (diff)
timecounting: add missing mutex assertion to tc_update_timekeep()
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 5b84d2d5095..a7cf9cdaa62 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tc.c,v 1.66 2020/07/20 21:43:02 cheloha Exp $ */
+/* $OpenBSD: kern_tc.c,v 1.67 2020/07/20 21:51:34 cheloha Exp $ */
/*
* Copyright (c) 2000 Poul-Henning Kamp <phk@FreeBSD.org>
@@ -531,6 +531,8 @@ tc_update_timekeep(void)
static struct timecounter *last_tc = NULL;
struct timehands *th;
+ MUTEX_ASSERT_LOCKED(&windup_mtx);
+
if (timekeep == NULL)
return;