Bug #11870: FreeBSD hardware lock cleanup fix with multiple opens by a process.
authorJung-uk Kim <jkim@FreeBSD.org>
Wed, 17 Oct 2007 19:50:29 +0000 (12:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Oct 2007 19:52:12 +0000 (12:52 -0700)
commit36120264ca8f43078f8748e022faeb9471edcb36
tree6069352cee66872b65f2fdfeb27a09713c3dceee
parentec1162b212248042bf1317abcb3c47bb10db8aa3
Bug #11870: FreeBSD hardware lock cleanup fix with multiple opens by a process.

Previously, the lock would get released on the first close by the X Server
(during AIGLX setup), and the Radeon driver would then hang in initialization
due to unexpected failure in DRM calls that required the lock to be held.

Based on a patch by Kostik Belousov.
bsd-core/drm_drv.c