Skip to contentSkip to conversation

drivers:cpufreq: Change policy->cpuinfo.transition_latency to correct value

PATCH Viresh Kumar 1 participant 1 message Nov 27, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 14 lines · Nicholas Krause

Changes policy->cpuinfo.transition_latency for 1000 to 1000000 nanoseconds as we are assuming the latency is 1 millisecond.

---
 drivers/cpufreq/pxa2xx-cpufreq.c | 2 +-
 drivers/cpufreq/pxa3xx-cpufreq.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/cpufreq/pxa2xx-cpufreq.c +0 -0
index e24269a..2b894aa 100644

drivers/cpufreq/pxa2xx-cpufreq.c static int pxa_cpufreq_init(struct cpufreq_policy *policy) · line 377

Quoted 8 lines
drivers/cpufreq/pxa2xx-cpufreq.c +2 -2
@@ -372,7 +372,7 @@ static int pxa_cpufreq_init(struct cpufreq_policy *policy)
        init_sdram_rows();
 
        /* set default policy and cpuinfo */
-       policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */
+       policy->cpuinfo.transition_latency = 1000000;
 
-       policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */
+       policy->cpuinfo.transition_latency = 1000000;

I believe the FIXMEs are still valid and shouldn't be removed. As we are still running under the assumption here instead of finding out how much is the latency.