summaryrefslogtreecommitdiff
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-12-07 04:16:49 +0000
committerAlan Cox <alc@FreeBSD.org>2003-12-07 04:16:49 +0000
commitbca62663abdf9c957d3d60b694f795efb5ea5488 (patch)
tree31177b9afa9a65dc075d2844cd80cfc2fc5e94a5 /sys/kern/kern_thread.c
parentaea8889fc46fe9048d60f2263b63d532e68829f6 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 3683de878f98..985fce2b93a1 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -187,9 +187,7 @@ thread_init(void *mem, int size)
struct thread *td;
td = (struct thread *)mem;
- mtx_lock(&Giant);
vm_thread_new(td, 0);
- mtx_unlock(&Giant);
cpu_thread_setup(td);
td->td_turnstile = turnstile_alloc();
td->td_sched = (struct td_sched *)&td[1];