diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-07-20 21:51:35 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-07-20 21:51:35 +0000 |
commit | e0a1a310aa15e53f8698f2aaa222e889a3ca55ac (patch) | |
tree | d259b70024d2947f0b48c9157f1559c174b3d4e8 /sys/kern/kern_tc.c | |
parent | 9ca3aedba313b5c8dc0d5bd55cc32aaf8269872f (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.c | 4 |
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; |