summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_taskqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
-rw-r--r--sys/kern/subr_taskqueue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c
index 3e210cc..c3ddb5f 100644
--- a/sys/kern/subr_taskqueue.c
+++ b/sys/kern/subr_taskqueue.c
@@ -336,14 +336,14 @@ taskqueue_start_threads(struct taskqueue **tqp, int count, int pri,
for (i = 0; i < count; i++) {
if (count == 1)
- error = kthread_create(taskqueue_thread_loop, tqp,
+ error = kproc_create(taskqueue_thread_loop, tqp,
&tq->tq_pproc[i], RFSTOPPED, 0, ktname);
else
- error = kthread_create(taskqueue_thread_loop, tqp,
+ error = kproc_create(taskqueue_thread_loop, tqp,
&tq->tq_pproc[i], RFSTOPPED, 0, "%s_%d", ktname, i);
if (error) {
/* should be ok to continue, taskqueue_free will dtrt */
- printf("%s: kthread_create(%s): error %d",
+ printf("%s: kproc_create(%s): error %d",
__func__, ktname, error);
tq->tq_pproc[i] = NULL; /* paranoid */
} else
@@ -379,7 +379,7 @@ taskqueue_thread_loop(void *arg)
tq->tq_pcount--;
wakeup_one(tq->tq_pproc);
TQ_UNLOCK(tq);
- kthread_exit(0);
+ kproc_exit(0);
}
void
OpenPOWER on IntegriCloud