summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_fork.c1
-rw-r--r--sys/sys/proc.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 1c5336c..dd3eb04 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -408,7 +408,6 @@ again:
/*
* We start off holding one spinlock after fork: sched_lock.
*/
- p2->p_spinlocks = 1;
PROC_LOCK(p1);
crhold(p1->p_ucred);
p2->p_ucred = p1->p_ucred;
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 51d97e3..1552088 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -215,7 +215,6 @@ struct proc {
struct vnode *p_textvp; /* (b) Vnode of executable. */
struct mtx p_mtx; /* (k) Lock for this struct. */
- u_int p_spinlocks; /* (k) Count of held spin locks. */
char p_lock; /* (c) Process lock (prevent swap) count. */
u_char p_oncpu; /* (j) Which cpu we are on. */
u_char p_lastcpu; /* (j) Last cpu we were on. */
OpenPOWER on IntegriCloud