1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Remove the p_spinlocks spin lock count that was obsoleted by the

per-CPU spinlocks list.
This commit is contained in:
John Baldwin 2001-06-30 03:35:22 +00:00
parent 1af55356f8
commit aa3cefd06c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79006
2 changed files with 0 additions and 2 deletions

View File

@ -408,7 +408,6 @@ fork1(p1, flags, procp)
/*
* 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;

View File

@ -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. */