Re: p4-clockmod not working in 2.6.16
From: Sasa Ostrouska
Date: Tue Mar 21 2006 - 17:02:54 EST
On Tue, 2006-03-21 at 17:01 -0500, Dave Jones wrote:
> On Tue, Mar 21, 2006 at 10:57:10PM +0100, Sasa Ostrouska wrote:
>
> > Hi Dave, here it is, this is on a Sony Vaio PCG-GRT816S laptop:
> > CPU0: Temperature above threshold
> > CPU0: Running in modulated clock mode
> > .. ad infinitum ..
>
> *yowch*. Are you running that CPU fanless or something?
>
No, but laptop is on the table :( I get many times this messages, also
I'm compilling at the moment. But in any case also with normal use the
fan is very active.
> Does the patch below help?
>
> Dave
>
>
> Fix the code to disable freqs less than 2GHz in N60 errata.
>
> Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx>
> Signed-off-by: Dave Jones <davej@xxxxxxxxxx>
>
> Index: linux-2.6.15/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
> ===================================================================
> --- linux-2.6.15.orig/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
> +++ linux-2.6.15/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
> @@ -244,7 +244,7 @@ static int cpufreq_p4_cpu_init(struct cp
> for (i=1; (p4clockmod_table[i].frequency != CPUFREQ_TABLE_END); i++) {
> if ((i<2) && (has_N44_O17_errata[policy->cpu]))
> p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID;
> - else if (has_N60_errata[policy->cpu] && p4clockmod_table[i].frequency < 2000000)
> + else if (has_N60_errata[policy->cpu] && ((stock_freq * i)/8) < 2000000)
> p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID;
> else
> p4clockmod_table[i].frequency = (stock_freq * i)/8;
>
Let me try the patch and I will report.
Many thanks and best regards
Sasa Ostrouska
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/