summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-11-28 13:54:08 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-11-28 13:54:08 +0000
commitaa90aaf44fd9b8356ad22b56f480436501098026 (patch)
tree85fd36d4078255f47939a9811d7ae8d7bede9933 /sys/kern
parent012174a91c0de9d1b03265ab959fe6bc197aa24d (diff)
remove the DIRECTOK flag. the caller semantics were too weird, and it's a
bad idea to have functions that react unpredictably.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_workq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_workq.c b/sys/kern/kern_workq.c
index cb366a3a9bf..258419194fc 100644
--- a/sys/kern/kern_workq.c
+++ b/sys/kern/kern_workq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_workq.c,v 1.4 2007/11/25 15:56:17 tedu Exp $ */
+/* $OpenBSD: kern_workq.c,v 1.5 2007/11/28 13:54:07 tedu Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -128,10 +128,6 @@ workq_add_task(struct workq *wq, int flags, workq_fn func,
int s;
if (wq == NULL) {
- if (flags & WQ_DIRECTOK) {
- func(a1, a2);
- return 0;
- }
wq = &workq_syswq;
}