diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-11-28 13:54:08 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-11-28 13:54:08 +0000 |
commit | aa90aaf44fd9b8356ad22b56f480436501098026 (patch) | |
tree | 85fd36d4078255f47939a9811d7ae8d7bede9933 /sys | |
parent | 012174a91c0de9d1b03265ab959fe6bc197aa24d (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')
-rw-r--r-- | sys/kern/kern_workq.c | 6 | ||||
-rw-r--r-- | sys/sys/workq.h | 3 |
2 files changed, 2 insertions, 7 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; } diff --git a/sys/sys/workq.h b/sys/sys/workq.h index 3ba7b883801..cd1821a6346 100644 --- a/sys/sys/workq.h +++ b/sys/sys/workq.h @@ -1,4 +1,4 @@ -/* $OpenBSD: workq.h,v 1.3 2007/11/25 15:56:17 tedu Exp $ */ +/* $OpenBSD: workq.h,v 1.4 2007/11/28 13:54:07 tedu Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -24,7 +24,6 @@ struct workq; #define WQ_WAITOK (1<<0) #define WQ_MPSAFE (1<<1) -#define WQ_DIRECTOK (1<<2) typedef void (*workq_fn)(void *, void *); struct workq *workq_create(const char * /* name */, int /* nthreads */); |