summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUjwal Patel <ujwalp@codeaurora.org>2014-05-12 11:07:02 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:30:01 -0700
commit5672e82ee79059389742cd6464b9f6e93e1fc6a6 (patch)
tree8412aa48b6032ad4e26b13cda65ee501b189ea74
parent42ad918cd969eb722478751fa8a9e4cbb24db33f (diff)
msm: mdss: fix single layer vote for pipe staged at higher levels
BW calculation for single layer requires iterative search on how many pipes are staged on a layer mixer. In the current implementation, starting source split, container used to store staged pipes has two entries per stage. Based on this maximum entries to search for single layer has also increased. Update single layer iterative search based on this new changes. Change-Id: I2e65567fd795d71ca5ded0fa56c602267fe46768 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
index df19e3ba3b7e..a80658996b3b 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
@@ -341,7 +341,7 @@ static inline bool mdss_mdp_is_single_pipe_per_mixer(
int cnt = 0;
int i;
- for (i = 0; i < MDSS_MDP_MAX_STAGE; i++) {
+ for (i = 0; i < MAX_PIPES_PER_LM; i++) {
struct mdss_mdp_pipe *pipe = mixer->stage_pipe[i];
if (pipe) {
cnt++;