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

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

Merge "qcom: clock-cpu-8994: Don't set CPU clocks to HANDOFF_ENABLED_CLK"

parents 9b8c6bac e4789198
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -591,22 +591,10 @@ static inline struct cpu_clk_8994 *to_cpu_clk_8994(struct clk *c)
	return container_of(c, struct cpu_clk_8994, c);
	return container_of(c, struct cpu_clk_8994, c);
}
}


static struct clk *logical_cpu_to_clk(int cpu);

static enum handoff cpu_clk_8994_handoff(struct clk *c)
static enum handoff cpu_clk_8994_handoff(struct clk *c)
{
{
	int cpu;

	c->rate = clk_get_rate(c->parent);
	c->rate = clk_get_rate(c->parent);


	/*
	 * Don't unnecessarily turn on the parents for an offline CPU and
	 * then have them turned off at late init.
	 */
	for_each_online_cpu(cpu) {
		if (logical_cpu_to_clk(cpu) == c)
			return HANDOFF_ENABLED_CLK;
	}
	return HANDOFF_DISABLED_CLK;
	return HANDOFF_DISABLED_CLK;
}
}