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:
Kuogee Hsieh 2014-11-25 14:57:32 -08:00 committed by David Keitel
parent cf62347f51
commit 444a4c75d5

View file

@ -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);