summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-05-18 15:04:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-05-18 15:04:59 +0000
commitc91fcee75dd28983a25406c08aae9b35e480b3b4 (patch)
tree205634bc56c67f77f4fd10c07e16b1fab619dadf /sys/kern/kern_lock.c
parent5810c7ef77f9d72bdaa620d443b07ce334b64de8 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 58c13e5a7bfb..2203c215a189 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -550,7 +550,6 @@ lockinit(lkp, prio, wmesg, timo, flags)
#ifdef DEBUG_LOCKS
stack_zero(&lkp->lk_stack);
#endif
- lock_profile_object_init(&lkp->lk_object, &lock_class_lockmgr, wmesg);
lock_init(&lkp->lk_object, &lock_class_lockmgr, wmesg, NULL,
LO_RECURSABLE | LO_SLEEPABLE | LO_UPGRADABLE);
}
@@ -562,9 +561,9 @@ void
lockdestroy(lkp)
struct lock *lkp;
{
+
CTR2(KTR_LOCK, "lockdestroy(): lkp == %p (lk_wmesg == \"%s\")",
lkp, lkp->lk_wmesg);
- lock_profile_object_destroy(&lkp->lk_object);
lock_destroy(&lkp->lk_object);
}