diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2019-11-29 21:32:05 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2019-11-29 21:32:05 +0000 |
commit | 93c27c49c552e314e0bd47bc7ca676569cef7e9a (patch) | |
tree | 9a6d6bede42e17aa636a5c370c608675cc6c73d5 /sys/kern | |
parent | c85c176f8c13b122022c5a9cb055161ea3664df4 (diff) |
Move p_sleeplocks and p_limit into the "zero on create" section of struct
proc, so they don't need to be explicitly initialized in thread_new()
suggested by anton@
ok kettenis@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 1bec397f183..503d7f1d3d8 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.217 2019/11/29 20:12:19 guenther Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.218 2019/11/29 21:32:04 guenther Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -149,7 +149,6 @@ thread_new(struct proc *parent, vaddr_t uaddr) p = pool_get(&proc_pool, PR_WAITOK); p->p_stat = SIDL; /* protect against others */ p->p_flag = 0; - p->p_limit = NULL; /* * Make a proc table entry for the new process. @@ -168,10 +167,6 @@ thread_new(struct proc *parent, vaddr_t uaddr) */ timeout_set(&p->p_sleep_to, endtsleep, p); -#ifdef WITNESS - p->p_sleeplocks = NULL; -#endif - return p; } |