From cbf193046b86decfda28ab2a1cecd0a5d86279c6 Mon Sep 17 00:00:00 2001 From: jhb Date: Sat, 30 Jun 2001 03:35:22 +0000 Subject: [PATCH] Remove the p_spinlocks spin lock count that was obsoleted by the per-CPU spinlocks list. --- sys/kern/kern_fork.c | 1 - sys/sys/proc.h | 1 - 2 files changed, 2 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 1c5336c4b92a..dd3eb04e157a 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 51d97e34c4a7..1552088f5218 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. */