aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vkbd
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2005-07-21 16:19:08 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2005-07-21 16:19:08 +0000
commit6502441272b3a795c2aadff47851a85a6057e406 (patch)
tree53bb7220513d4e35f54099a95211ab4859f8e8c3 /sys/dev/vkbd
parent153fdc98cfca54f8542840b9c60cc6d8ca27142c (diff)
Notes
Diffstat (limited to 'sys/dev/vkbd')
-rw-r--r--sys/dev/vkbd/vkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vkbd/vkbd.c b/sys/dev/vkbd/vkbd.c
index 622e6f159764b..ed39007bc9590 100644
--- a/sys/dev/vkbd/vkbd.c
+++ b/sys/dev/vkbd/vkbd.c
@@ -65,7 +65,7 @@ MALLOC_DEFINE(M_VKBD, KEYBOARD_NAME, "Virtual AT keyboard");
*****************************************************************************/
#define VKBD_LOCK_DECL struct mtx ks_lock
-#define VKBD_LOCK_INIT(s) mtx_init(&(s)->ks_lock, NULL, NULL, MTX_DEF)
+#define VKBD_LOCK_INIT(s) mtx_init(&(s)->ks_lock, "vkbd_lock", NULL, MTX_DEF|MTX_RECURSE)
#define VKBD_LOCK_DESTROY(s) mtx_destroy(&(s)->ks_lock)
#define VKBD_LOCK(s) mtx_lock(&(s)->ks_lock)
#define VKBD_UNLOCK(s) mtx_unlock(&(s)->ks_lock)