]> git.baikalelectronics.ru Git - kernel.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)
commit8d78cbff8243b96ab16be874054baeab97811c84
tree6b1671f86a52d69c1f8953a730fe1f8989a4f0f6
parent0e882c84c948b443bf0e1157fcc97b4fd76968fb
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