diff options
| author | Jayant Shekhar <jshekhar@codeaurora.org> | 2017-02-21 14:31:41 +0530 |
|---|---|---|
| committer | Jayant Shekhar <jshekhar@codeaurora.org> | 2017-02-21 14:31:41 +0530 |
| commit | f7ccac313f288159c381a797acbe8b3797f55998 (patch) | |
| tree | e5067e7cbee87310f8f0376785c7d68bae7184ba | |
| parent | 2aa89ab3ff59a788321bc6af782d639cfc8dab1f (diff) | |
msm: mdss: Correct prefill bandwidth calculations
vbp_min is calculated as 0 because variable is incorrectly
compared. Fix this to correct prefill bw calculation.
Change-Id: I80c3db2898111b5e8acdccc35af745dde30c0509
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_ctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index acb356fc681a..66e903c6b361 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -891,7 +891,7 @@ static u32 __calc_prefill_line_time_us(struct mdss_mdp_ctl *ctl) static u32 __get_min_prefill_line_time_us(struct mdss_mdp_ctl *ctl) { - u32 vbp_min = 0; + u32 vbp_min = UINT_MAX; int i; struct mdss_data_type *mdata; @@ -913,6 +913,9 @@ static u32 __get_min_prefill_line_time_us(struct mdss_mdp_ctl *ctl) } } + if (vbp_min == UINT_MAX) + vbp_min = 0; + return vbp_min; } |
