]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 1 Jul 2019 16:05:45 +0000 (19:05 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Jul 2019 16:24:08 +0000 (19:24 +0300)
commit366489e6d9cb74153d923299d10acf010b57fe7a
tree913a1fac0fc0c1338968cd961fc14b6059219c0e
parent28453511d19a1658e8ce7d43c627119b3361c435
drm/i915: Check crtc_state->wm.need_postvbl_update before grabbing wm.mutex

wm.mutex does not protect the crtc state so no point in grabbing it
to check crtc_state->wm.need_postvbl_update.

Also do a bit of s/intel_crtc/crtc/ while at it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190701160550.24205-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_pm.c