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

Commit bf16597d authored by Kuogee Hsieh's avatar Kuogee Hsieh
Browse files

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: default avatarKuogee Hsieh <khsieh@codeaurora.org>
parent 3005501e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -892,7 +892,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);