mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: wake up system before vsync for cmd panel
Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
This commit is contained in:
parent
82c6b4cdd7
commit
eebca117d6
2 changed files with 7 additions and 0 deletions
|
@ -1491,6 +1491,11 @@ void mdp_update_pm(struct msm_fb_data_type *mfd, ktime_t pre_vsync)
|
|||
vsync_period);
|
||||
if (diff_to_next > vsync_period)
|
||||
return;
|
||||
pr_debug("%s cur_time %d, pre_vsync %d, to_next %d\n",
|
||||
__func__,
|
||||
(int)ktime_to_ms(cur_time),
|
||||
(int)ktime_to_ms(pre_vsync),
|
||||
diff_to_next);
|
||||
wakeup_time = ktime_add_ns(cur_time, diff_to_next * NSEC_PER_MSEC);
|
||||
activate_event_timer(mfd->cpu_pm_hdl, wakeup_time);
|
||||
}
|
||||
|
|
|
@ -273,6 +273,8 @@ int mdp4_dsi_cmd_pipe_commit(int cndx, int wait)
|
|||
pipe = vctrl->base_pipe;
|
||||
mixer = pipe->mixer_num;
|
||||
|
||||
mdp_update_pm(vctrl->mfd, vctrl->vsync_time);
|
||||
|
||||
if (vp->update_cnt == 0) {
|
||||
mutex_unlock(&vctrl->update_lock);
|
||||
return cnt;
|
||||
|
|
Loading…
Reference in a new issue