diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-31 18:17:00 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-31 18:17:00 +0000 |
commit | 482082f161006b174aa26ba3c9bcf47e8419d274 (patch) | |
tree | a3d3f612081c251e56825f10eb704055e5e6573b /sys/kern/init_main.c | |
parent | 3e4e2df46dcff181385966bba5891b76e0e1ee5a (diff) |
add an interface for work queues run from a kernel thread.
this type of code is implemented many times already in the kernel, this is
a generic version of all those replicated code bases.
originally from tedu@
ok tedu@ tom@ deraadt@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 46f9faf3ade..91069c58232 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.140 2007/05/16 17:27:30 art Exp $ */ +/* $OpenBSD: init_main.c,v 1.141 2007/05/31 18:16:59 dlg Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -73,6 +73,7 @@ #include <sys/domain.h> #include <sys/mbuf.h> #include <sys/pipe.h> +#include <sys/workq.h> #include <sys/syscall.h> #include <sys/syscallargs.h> @@ -139,6 +140,7 @@ void start_reaper(void *); void start_crypto(void *); void init_exec(void); void kqueue_init(void); +void workq_init(void); extern char sigcode[], esigcode[]; #ifdef SYSCALL_DEBUG @@ -330,6 +332,9 @@ main(void *framep) /* Initialize run queues */ rqinit(); + /* Initialize work queues */ + workq_init(); + /* Configure the devices */ cpu_configure(); |