summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-02-13 23:38:08 +0000
committerjhb <jhb@FreeBSD.org>2008-02-13 23:38:08 +0000
commitb518019544ad4128ba0fc46197fe4c0898d13516 (patch)
tree8ade4e6cadbb84bfcc1772cfcafa0f9744969ffc /sys/dev/syscons
parent32100bd15f83acc8e775a8673d2c063d2d494b07 (diff)
downloadFreeBSD-src-b518019544ad4128ba0fc46197fe4c0898d13516.zip
FreeBSD-src-b518019544ad4128ba0fc46197fe4c0898d13516.tar.gz
Mark the syscons video spin mutex as recursable since it is currently
recursed in a few places. MFC after: 1 week
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index 1a19b60..f17b294 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) \
OpenPOWER on IntegriCloud