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

This commit is contained in:
Linux Build Service Account 2014-05-05 15:08:55 -07:00 committed by Gerrit - the friendly Code Review server
commit b50e07707c
2 changed files with 9 additions and 0 deletions

View File

@ -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>

View File

@ -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;
}