]> 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)
commit4b8d4d72eb53bd564cff4cd180a10b747ccc34c6
tree913a1fac0fc0c1338968cd961fc14b6059219c0e
parent6e517a1a632e51fdea7d1dd46a2b20c77e2b8d6d
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