]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a40a4f26602bb8c99e5e420b963bd8954b2b4e1
tree5e4dc7f4d882143166d9aa5525f5f526d79056e7
parentb766d00595e5ac2652faca3a6289dfcc526a5da9
drm: create mode_config idr lock

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>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h