summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2017-12-14 02:42:19 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2017-12-14 02:42:19 +0000
commitaa834dff21eb818f4e6766d6644f265d2fbbcf6b (patch)
tree7c4ce0abb88137f0efb541e066aec917b314218c /sys/kern
parente7602b2641d81350af5ee9628afab472598c79be (diff)
i forgot to convert timeout_proc_barrier to cond_signal
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);
}
/*