From: Dave Jones Date: Thu, 5 Mar 2009 05:16:26 +0000 (-0500) Subject: [CPUFREQ] Prevent p4-clockmod from auto-binding to the ondemand governor. X-Git-Tag: upstream/snapshot3+hdmi~19941^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36e8abf3edcd2d207193ec5741d1a2a645d470a5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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 Signed-off-by: Dave Jones --- diff --git a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c index 1778402..352cf9a 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) 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]);