From 671f325843c625391c74f6267efaacd699652226 Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 14 Dec 2017 02:42:18 +0000 Subject: [PATCH] i forgot to convert timeout_proc_barrier to cond_signal --- sys/kern/kern_timeout.c | 8 +++----- 1 file 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 * Copyright (c) 2000-2001 Artur Grabowski @@ -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); } /* -- 2.20.1