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

Commit e2637ae6 authored by Praneeth Paladugu's avatar Praneeth Paladugu
Browse files

msm: vidc: Change defaults to maximum values



In state transitions, all instance values are not reliable.
When clocks and bus scaling algorithms don't find the exact
match with these values, vote for highest values instead of
lowest values. This helps to handle state transistions faster.

CRs-Fixed: 2012520
Change-Id: I76f59549cf6fc9e94ec86fd2fbae2eb7cc3f9454
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent a7654c6b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1053,6 +1053,10 @@ static int __get_target_freq(struct devfreq *dev, unsigned long *freq)
	if (!dev || !freq)
		return -EINVAL;

	/* Start with highest frequecy and decide correct one later*/

	ab_kbps = INT_MAX;

	gov = container_of(dev->governor,
			struct governor, devfreq_gov);
	dev->profile->get_dev_status(dev->dev.parent, &stats);
+4 −1
Original line number Diff line number Diff line
@@ -1166,7 +1166,10 @@ static unsigned long __get_clock_rate(struct clock_info *clock,
	}

	if ((!num_mbs_per_sec || !data) && num_rows) {
		freq = table[num_rows - 1].freq;

		/* When no data is given, vote for the highest frequency. */

		freq = table[0].freq;
		goto print_clk;
	}