summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-12-07 04:16:49 +0000
committeralc <alc@FreeBSD.org>2003-12-07 04:16:49 +0000
commit4408614be4c55dfa12e600642a1138749a175138 (patch)
tree31177b9afa9a65dc075d2844cd80cfc2fc5e94a5 /sys/kern
parentf54db902edb5b75484487ce5d8287edd24e821ca (diff)
downloadFreeBSD-src-4408614be4c55dfa12e600642a1138749a175138.zip
FreeBSD-src-4408614be4c55dfa12e600642a1138749a175138.tar.gz
- Giant is no longer required by vm_thread_new().
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_kse.c2
-rw-r--r--sys/kern/kern_thread.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 3683de8..985fce2 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.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];
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 3683de8..985fce2 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];
OpenPOWER on IntegriCloud