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

Commit 19c0b8b2 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: Correct the round_rate ops for SDM439"

parents 7fdbec7e 18fc8840
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -130,7 +130,16 @@ static enum handoff cpu_clk_8939_handoff(struct clk *c)

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

	for (level = 0; level < c->num_fmax; level++)
		if (rate <= c->fmax[level])
			break;

	if (level == c->num_fmax)
		return c->fmax[level-1];

	return c->fmax[level];
}

static int cpu_clk_8939_set_rate(struct clk *c, unsigned long rate)