]> asedeno.scripts.mit.edu Git - linux.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)
commit88016a9fb7417cb99c2e58e96ff943d59fa27099
tree913a1fac0fc0c1338968cd961fc14b6059219c0e
parent13ce609243c7fbc17d8b272629242bc25a5401bd
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