diff options
author | Dave Jones <davej@redhat.com> | 2009-03-05 00:16:26 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2009-03-05 00:16:26 -0500 |
commit | 36e8abf3edcd2d207193ec5741d1a2a645d470a5 (patch) | |
tree | 8a4daf38322204c345b3c3f91f3f91d8e231468f /arch/x86/kernel/cpu | |
parent | eb3092cee79e4efa5d3e9c81c7e6ca90318cebb8 (diff) |
[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>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/p4-clockmod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c index 1778402305e0..352cf9a49164 100644 --- a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c +++ b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c | |||
@@ -246,7 +246,10 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) | |||
246 | cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu); | 246 | cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu); |
247 | 247 | ||
248 | /* cpuinfo and default policy values */ | 248 | /* 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; | ||
250 | policy->cur = stock_freq; | 253 | policy->cur = stock_freq; |
251 | 254 | ||
252 | return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]); | 255 | return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]); |