drm/fb-helper: Push locking in fb_is_bound
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Jul 2017 15:18:24 +0000 (17:18 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:00:55 +0000 (10:00 +0200)
commitbdac4a052a47920eeae22441ab608612dc0ef4e5
treece15a175e92b30820cfa3cc66f59477e5a027614
parente9827d8ea2142d49a6622c72a3371a1d1e929c1d
drm/fb-helper: Push locking in fb_is_bound

That function only needs to take the individual crtc locks, not all
the kms locks. Push down the locking and then minimize it.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <treding@nvidia.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170704151833.17304-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_helper.c