Skip to content

Commit bfa709b

Browse files
Zhuoyu Zhangrafaeljw
authored andcommitted
cpufreq: powerpc: add cpufreq transition latency for FSL e500mc SoCs
According to the data provided by HW Team, at least 12 internal platform clock cycles are required to stabilize a DFS clock switch on FSL e500mc Socs. This patch replaces the CPUFREQ_ETERNAL with appropriate HW clock transition latency to make DFS governors work normally on Freescale e500mc boards. Signed-off-by: Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0b443ea commit bfa709b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/cpufreq/ppc-corenet-cpufreq.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/of.h>
2222
#include <linux/slab.h>
2323
#include <linux/smp.h>
24+
#include <sysdev/fsl_soc.h>
2425

2526
/**
2627
* struct cpu_data - per CPU data struct
@@ -205,7 +206,8 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy)
205206
for_each_cpu(i, per_cpu(cpu_mask, cpu))
206207
per_cpu(cpu_data, i) = data;
207208

208-
policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
209+
policy->cpuinfo.transition_latency =
210+
(12 * NSEC_PER_SEC) / fsl_get_sys_freq();
209211
of_node_put(np);
210212

211213
return 0;

0 commit comments

Comments
 (0)