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

Commit 33697ae3 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: Vote for zero ab value during Venus power collapse"

parents dec3acb0 916b22ad
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -772,7 +772,14 @@ static int __devfreq_target(struct device *devfreq_dev,
		goto err_unknown_device;
	}

	*freq = clamp_t(typeof(*freq), *freq, bus->range[0], bus->range[1]);
	/*
	 * Clamp for all non zero frequencies. This clamp is necessary to stop
	 * devfreq driver from spamming - Couldn't update frequency - logs, if
	 * the scaled ab value is not part of the frequency table.
	 */
	if (*freq)
		*freq = clamp_t(typeof(*freq), *freq, bus->range[0],
				bus->range[1]);

	/* we expect governors to provide values in kBps form, convert to Bps */
	ab = *freq * 1000;