mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "disp: msm: sde: avoid mutex lock for crtc flush event thread"
This commit is contained in:
commit
38f560fb02
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
_sde_crtc_flush_event_thread(crtc);
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue