drm/radeon/kms: drop taking lock around crtc lookup.
authorDave Airlie <airlied@redhat.com>
Wed, 21 Jul 2010 23:57:13 +0000 (09:57 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Jul 2010 23:57:13 +0000 (09:57 +1000)
commit29508eb66bfacdef324d2199eeaea31e0cdfaa29
tree8f75757c0696ad9ac0c671cc47d49524fbbae428
parentc42750b0261274107ae85c894c088e618a3e38b9
drm/radeon/kms: drop taking lock around crtc lookup.

We only add/remove crtcs at driver load, you cannot remove when
the GPU is running a CS packet since the fd is open, when
GPU hotplugging on radeons actually is needed all this locking
needs a review and I've started re-working kms core locking to deal
with this better. But for now avoid long delays in CS processing when
hotplug detect is happening in a different thread.

this fixes a regression introduced with hotplug detection.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_cs.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600_cs.c