From f9d9e3dc890c3424e6664725c6cfc481a1ed53fc Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 1 Apr 1997 10:18:51 +0000 Subject: Fixed commented-out Lite2 sysctl debug.lockpausetime. Removed unused #includes. --- sys/kern/kern_lock.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 6ded6cc..69510b3 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -35,14 +35,13 @@ * SUCH DAMAGE. * * @(#)kern_lock.c 8.18 (Berkeley) 5/21/95 - * $Id$ + * $Id: kern_lock.c,v 1.5 1997/03/25 17:11:30 peter Exp $ */ #include #include #include #include -#include /* * Locking primitives implementation. @@ -446,11 +445,13 @@ lockmgr_printinfo(lkp) #if defined(SIMPLELOCK_DEBUG) && NCPUS == 1 #include -#include #include -int lockpausetime = 0; -/* struct ctldebug debug2 = { "lockpausetime", &lockpausetime }; */ + +static int lockpausetime = 0; +SYSCTL_INT(_debug, OID_AUTO, lockpausetime, CTLFLAG_RW, &lockpausetime, 0, ""); + int simplelockrecurse; + /* * Simple lock functions so that the debugger can see from whence * they are being called. -- cgit v1.1