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

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

Merge "clk: msm: clock-cpu-8996: round clock rates to nearest fmax frequency"

parents 0c548a48 88f04130
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -552,7 +552,13 @@ static enum handoff cpu_clk_8996_handoff(struct clk *c)

static long cpu_clk_8996_round_rate(struct clk *c, unsigned long rate)
{
	return clk_round_rate(c->parent, rate);
	int i;

	for (i = 0; i < c->num_fmax; i++)
		if (rate <= c->fmax[i])
			return clk_round_rate(c->parent, c->fmax[i]);

	return clk_round_rate(c->parent, c->fmax[c->num_fmax - 1]);
}

static unsigned long alt_pll_perfcl_freqs[] = {