msm: mdss: reduce vsync waiting time only when it is enabled
Reduce vsync waiting time only when vsync is still enabled. Otherwise, it will trigger waiting for next vsync mistakenly and timeout eventually. CRs-Fixed: 762791 Change-Id: Ic3df12a4b449fa6d6cbbd1169e890b0cf3f67db1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
This commit is contained in:
parent
cf62347f51
commit
444a4c75d5
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ int mdss_mdp_cmd_intfs_stop(struct mdss_mdp_ctl *ctl, int session,
|
|||
* next vsync if there has no kickoff pending
|
||||
*/
|
||||
ctx->rdptr_enabled = 1;
|
||||
if (sctx)
|
||||
if (sctx && sctx->rdptr_enabled)
|
||||
sctx->rdptr_enabled = 1;
|
||||
}
|
||||
spin_unlock_irqrestore(&ctx->clk_lock, flags);
|
||||
|
|
Loading…
Add table
Reference in a new issue