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

Commit 38f560fb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: avoid mutex lock for crtc flush event thread"

parents 68f4129c 47261ce9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4159,7 +4159,12 @@ static void sde_crtc_disable(struct drm_crtc *crtc)
	msm_mode_object_event_notify(&crtc->base, crtc->dev, &event,
			(u8 *)&power_on);

	if (atomic_read(&sde_crtc->frame_pending)) {
		mutex_unlock(&sde_crtc->crtc_lock);
		_sde_crtc_flush_event_thread(crtc);
		mutex_lock(&sde_crtc->crtc_lock);
	}

	kthread_cancel_delayed_work_sync(&sde_crtc->static_cache_read_work);
	kthread_cancel_delayed_work_sync(&sde_crtc->idle_notify_work);