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

Commit ce016a25 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: msmtitanium: Update CCI clock before CPU clocks"

parents b009b42e bcac0e2f
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -852,6 +852,12 @@ static int clock_cpu_probe(struct platform_device *pdev)
				"Unable to turn on CPU clock for %d\n", cpu);
	}

	/* ccirate = HFPLL_rate/(2.5) */
	ccirate = CCI_RATE(apcs_hf_pll.c.rate);
	rc = clk_set_rate(&cci_clk.c, ccirate);
	if (rc)
		dev_err(&pdev->dev, "Can't set safe rate for CCI\n");

	a53rate = clk_get_rate(&a53_pwr_clk.c);
	pr_debug("Rate of A53 Pwr %ld, APCS PLL rate %ld\n", a53rate,
			apcs_hf_pll.c.rate);
@@ -867,12 +873,6 @@ static int clock_cpu_probe(struct platform_device *pdev)
	if (rc)
		dev_err(&pdev->dev, "Can't set perf safe rate\n");

	/* ccirate = HFPLL_rate/(2.5) */
	ccirate = CCI_RATE(apcs_hf_pll.c.rate);
	rc = clk_set_rate(&cci_clk.c, ccirate);
	if (rc)
		dev_err(&pdev->dev, "Can't set safe rate for CCI\n");

	put_online_cpus();

	populate_opp_table(pdev);