summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_timeout.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index 757663ebd8a..e34dc6aaf08 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_timeout.c,v 1.52 2017/12/14 00:45:16 dlg Exp $ */
+/* $OpenBSD: kern_timeout.c,v 1.53 2017/12/14 02:42:18 dlg Exp $ */
/*
* Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org>
* Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org>
@@ -353,11 +353,9 @@ timeout_barrier(struct timeout *to)
void
timeout_proc_barrier(void *arg)
{
- int *wait = arg;
+ struct cond *c = arg;
- *wait = 0;
-
- wakeup_one(wait);
+ cond_signal(c);
}
/*