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

Commit 750f0b53 authored by Junjie Wu's avatar Junjie Wu
Browse files

qcom-cpufreq: Add support for separate governor tunables per policy



CPUs under different policies might need different governor tunables
on certain targets. Enable support for this feature by parsing
"qcom,governor-per-policy" DT property.

Change-Id: I670135822d67d392030b54f40feab9a3aef11542
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 962ed456
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -14,6 +14,11 @@ Optional properties:
			"cpuX_clk" for every CPU that's present.
			"l2_clk" when an async cache/CCI is present.

Optional properties:
- qcom,governor-per-policy:	This property denotes that governor tunables
				should be associated with each cpufreq policy
				group instead of being global.

Example:
	qcom,msm-cpufreq@0 {
		regs = <0 4>
+4 −0
Original line number Diff line number Diff line
@@ -446,6 +446,10 @@ static int __init msm_cpufreq_probe(struct platform_device *pdev)
		cpufreq_frequency_table_get_attr(freq_table, cpu);
	}

	/* Use per-policy governor tunable for some targets */
	if (of_property_read_bool(dev->of_node, "qcom,governor-per-policy"))
		msm_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY;

	return 0;
}