Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b533147d authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Abhijith Desai
Browse files

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: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent a6c064d6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -907,7 +907,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;

@@ -929,6 +929,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;
}