diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-06-24 14:56:42 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-06-24 14:56:42 +0000 |
commit | 8bd5d11eba7a35a0f65edb4544a836c699893c11 (patch) | |
tree | 724036a47e4bdbd015175d0c22ce7975d3c0b42a /sys | |
parent | f9eda378d2fa2f0444a5f8260f0e761de8dd7a50 (diff) |
Remove a semicolon at the end of an if statement that made the thread
waiting for all the workqs to die wakeup more often than
it should have.
ok dlg@ tedu@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_workq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_workq.c b/sys/kern/kern_workq.c index b4a62f68d4d..6c98f35baf2 100644 --- a/sys/kern/kern_workq.c +++ b/sys/kern/kern_workq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_workq.c,v 1.9 2008/10/30 23:55:22 dlg Exp $ */ +/* $OpenBSD: kern_workq.c,v 1.10 2009/06/24 14:56:41 jsg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -186,7 +186,7 @@ workq_next_task(struct workq *wq) } else if (wq->wq_flags & WQ_F_RUNNING) msleep(wq, &wq->wq_mtx, PWAIT, "bored", 0); else { - if (--wq->wq_running == 0); + if (--wq->wq_running == 0) wakeup_one(&wq->wq_running); break; } |