summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuogee Hsieh <khsieh@codeaurora.org>2014-11-25 14:57:32 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:36:29 -0700
commit444a4c75d54b9523f404f351d64a4e3654b9dc9f (patch)
tree5140765b2acd24cc02ffc13c3c7083f8b17872b4
parentcf62347f51331000c986e18d87155d9903ea163a (diff)
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>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c b/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c
index 9271031738eb..e43137fd7cd5 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c
@@ -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);