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

Commit 913f7145 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: rcg2: Add DIV_ROUND_CLOSEST_ULL to roundoff RCG frequency"

parents 67867b09 958a7a8a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -510,7 +510,8 @@ static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate,
	}

	if (rcg->flags & FORCE_ENABLE_RCG) {
		rcg->current_freq = clk_get_rate(hw->clk);
		rcg->current_freq = DIV_ROUND_CLOSEST_ULL(
					clk_get_rate(hw->clk), 1000) * 1000;
		if (rcg->current_freq == cxo_f.freq)
			curr_src_index = 0;
		else {