summaryrefslogtreecommitdiff
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-09-08 15:31:23 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-09-08 15:31:23 +0000
commit2af00decb8b198abbcb8c3baf4adfab31e86e05e (patch)
tree66c36c08c008764d411d8477953e27ef2742f6b2 /sys/kern/kern_kthread.c
parentc02280f542426eaeaa33d9ed8ba8e23967d04e8a (diff)
Notes
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 109283216810..3c5248ebbb6e 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -256,7 +256,7 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
}
/* Initialize our new td */
- newtd = thread_alloc();
+ newtd = thread_alloc(pages);
if (newtd == NULL)
return (ENOMEM);
@@ -282,9 +282,6 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
newtd->td_pflags |= TDP_KTHREAD;
newtd->td_ucred = crhold(p->p_ucred);
- /* Allocate and switch to an alternate kstack if specified. */
- if (pages != 0)
- vm_thread_new_altkstack(newtd, pages);
/* this code almost the same as create_thread() in kern_thr.c */
PROC_LOCK(p);