diff options
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; |