]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Adjust sideband locking a bit for CHV/VLV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 May 2015 17:42:31 +0000 (20:42 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 May 2015 09:13:52 +0000 (11:13 +0200)
commit54433e91a6d92c98f21233b58ffb3ebf053611a8
tree6b1671f86a52d69c1f8953a730fe1f8989a4f0f6
parenta580516d9fcb09b86337895e483c93ad6c1ce4b5
drm/i915: Adjust sideband locking a bit for CHV/VLV

chv_enable_pll() doesn't need to hold sb_lock for the entire duration of
the function. Drop the lock as soon as possible.

valleyview_set_cdclk() does a potential lock+unlock+lock+unlock cycle
with sb_lock. Grab the lock a few lines earlier so we can make do
with a single lock+unlock cycle always.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c