From: dlg Date: Thu, 14 Dec 2017 02:40:51 +0000 (+0000) Subject: i forgot to convert ifq_barrier_task to cond_signal. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=40b2138cb3cd857a12bd3e4ac4f0b3cdf22e7f91;p=openbsd i forgot to convert ifq_barrier_task to cond_signal. --- diff --git a/sys/net/ifq.c b/sys/net/ifq.c index 22eba971297..3ad81b4ba66 100644 --- a/sys/net/ifq.c +++ b/sys/net/ifq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifq.c,v 1.16 2017/12/14 00:45:16 dlg Exp $ */ +/* $OpenBSD: ifq.c,v 1.17 2017/12/14 02:40:51 dlg Exp $ */ /* * Copyright (c) 2015 David Gwynne @@ -150,10 +150,9 @@ ifq_barrier(struct ifqueue *ifq) void ifq_barrier_task(void *p) { - unsigned int *notdone = p; + struct cond *c = p; - *notdone = 0; - wakeup_one(notdone); + cond_signal(c); } /*