Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5abeca4e authored by Paulo Zanoni's avatar Paulo Zanoni Committed by Daniel Vetter
Browse files

drm/i915: intel_frontbuffer_flip_prepare() doesn't need struct_mutex



So release the lock earlier.

Reviewed-by: default avatarChris wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 25ad93fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11475,9 +11475,9 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
			  to_intel_plane(primary)->frontbuffer_bit);

	intel_fbc_disable(dev);
	mutex_unlock(&dev->struct_mutex);
	intel_frontbuffer_flip_prepare(dev,
				       to_intel_plane(primary)->frontbuffer_bit);
	mutex_unlock(&dev->struct_mutex);

	trace_i915_flip_request(intel_crtc->plane, obj);