Skip to content

Commit 36e8abf

Browse files
author
Dave Jones
committed
[CPUFREQ] Prevent p4-clockmod from auto-binding to the ondemand governor.
The latency of p4-clockmod sucks so hard that scaling on a regular basis with ondemand is a really bad idea. Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Dave Jones <davej@redhat.com>
1 parent eb3092c commit 36e8abf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/x86/kernel/cpu/cpufreq/p4-clockmod.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)
246246
cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu);
247247

248248
/* cpuinfo and default policy values */
249-
policy->cpuinfo.transition_latency = 1000000; /* assumed */
249+
250+
/* the transition latency is set to be 1 higher than the maximum
251+
* transition latency of the ondemand governor */
252+
policy->cpuinfo.transition_latency = 10000001;
250253
policy->cur = stock_freq;
251254

252255
return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]);

0 commit comments

Comments
 (0)