mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
- Giant is no longer required by vm_thread_new().
This commit is contained in:
parent
aea8889fc4
commit
bca62663ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123207
@ -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];
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user