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

Commit deb78380 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Correct Validation of new operating rate"

parents 34166917 f9c6f9cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -710,7 +710,7 @@ int msm_vidc_validate_operating_rate(struct msm_vidc_inst *inst,

	operating_rate = operating_rate >> 16;

	if ((curr_operating_rate + ops_left) >= operating_rate ||
	if ((curr_operating_rate * (1 + ops_left)) >= operating_rate ||
			!msm_vidc_clock_scaling ||
			inst->clk_data.buffer_counter < DCVS_FTB_WINDOW) {
		dprintk(VIDC_DBG,