Skip to content

Commit

Permalink
[CPUFREQ] Prevent p4-clockmod from auto-binding to the ondemand gover…
Browse files Browse the repository at this point in the history
…nor.

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>
  • Loading branch information
Dave Jones committed Mar 5, 2009
1 parent eb3092c commit 36e8abf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)
cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu);

/* cpuinfo and default policy values */
policy->cpuinfo.transition_latency = 1000000; /* assumed */

/* the transition latency is set to be 1 higher than the maximum
* transition latency of the ondemand governor */
policy->cpuinfo.transition_latency = 10000001;
policy->cur = stock_freq;

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

0 comments on commit 36e8abf

Please sign in to comment.