Merge "qcom-cpufreq: Add support for separate governor tunables per policy"
This commit is contained in:
commit
b50e07707c
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue