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>
This commit is contained in:
parent
2aa89ab3ff
commit
f7ccac313f
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue