*
* %sccs.include.redist.c%
*
- * @(#)kern_lock.c 8.13 (Berkeley) %G%
+ * @(#)kern_lock.c 8.14 (Berkeley) %G%
*/
#include <sys/param.h>
}
}
alp->lock_data = 1;
+ if (curproc)
+ curproc->p_simple_locks++;
}
int
return (0);
alp->lock_data = 1;
+ if (curproc)
+ curproc->p_simple_locks++;
return (1);
}
}
}
alp->lock_data = 0;
+ if (curproc)
+ curproc->p_simple_locks--;
}
#endif /* DEBUG && NCPUS == 1 */