Add locking. The main lock is dev->mode_config.config_lock. It should be
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Fri, 18 May 2007 16:40:01 +0000 (09:40 -0700)
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Fri, 18 May 2007 16:40:01 +0000 (09:40 -0700)
commitf89458722173b364b8c3c27788b6c61889da554c
tree47f58c28f1bc88d215a4b547ee24614c0a7fa115
parentf3beabedc36b7bc2d45ca9c7f64d2c54e291e32b
Add locking.  The main lock is dev->mode_config.config_lock.  It should be
held across any operations that modify mode lists, crtc config, output
config, etc.  It should be taken at high level entry points (currently just
initial config and user IOCTL).

Seems to work ok on my system, but needs more testing (with lockdep) and
review from some fresh eyes.
linux-core/drm_crtc.c
linux-core/drm_crtc.h
linux-core/drm_fb.c
linux-core/drm_modes.c
linux-core/intel_fb.c