drm: create mode_config idr lock
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 19 Jan 2009 07:21:45 +0000 (17:21 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 22 Jan 2009 07:53:05 +0000 (17:53 +1000)
Create a separate mode_config IDR lock for simplicity.  The core DRM
config structures (connector, mode, etc. lists) are still protected by
the mode_config mutex, but the CRTC IDR (used for the various identifier
IDs) is now protected by the mode_config idr_mutex.  Simplifies the
locking a bit and removes a warning.

All objects are protected by the config mutex, we may in the future,
split the object further to have reference counts.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found