From 1d9c3ad3ef6623762107360da30f0cba6fd38bd2 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 13 Feb 2008 23:38:08 +0000 Subject: [PATCH] Mark the syscons video spin mutex as recursable since it is currently recursed in a few places. MFC after: 1 week --- sys/dev/syscons/syscons.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index 1a19b605c18..f17b294d51a 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -517,7 +517,8 @@ typedef struct { #define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG) #define SC_VIDEO_LOCKINIT(sc) \ - mtx_init(&(sc)->video_mtx, "syscons video lock", NULL,MTX_SPIN); + mtx_init(&(sc)->video_mtx, "syscons video lock", NULL, \ + MTX_SPIN | MTX_RECURSE); #define SC_VIDEO_LOCK(sc) \ do { \ if (!cold) \