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

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

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

parents 173be9f3 750f0b53
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;
}