diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2009-03-15 08:03:54 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2009-03-15 08:03:54 +0000 |
| commit | 1723a06485c9a7319c877007ff4d8a2dd584d92c (patch) | |
| tree | d7be9c96e5a5079b2c9fae273c6023bcf3781b8d /sys/kern/kern_lock.c | |
| parent | 2e6b8de46211186a3e6c6362831c37f9f15b9ae0 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index d3b9ed80815e..f19e249a6c2c 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -333,16 +333,17 @@ __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk, const char *wmesg, int pri, int timo, const char *file, int line) { GIANT_DECLARE; - uint64_t waittime; struct lock_class *class; const char *iwmesg; uintptr_t tid, v, x; u_int op; - int contested, error, ipri, itimo, queue, wakeup_swapper; + int error, ipri, itimo, queue, wakeup_swapper; +#ifdef LOCK_PROFILING + uint64_t waittime = 0; + int contested = 0; +#endif - contested = 0; error = 0; - waittime = 0; tid = (uintptr_t)curthread; op = (flags & LK_TYPE_MASK); iwmesg = (wmesg == LK_WMESG_DEFAULT) ? lk->lock_object.lo_name : wmesg; |
