Messages in this thread | | | Subject | Re: p4-clockmod not working in 2.6.16 | From | Sasa Ostrouska <> | Date | Tue, 21 Mar 2006 23:13:45 +0100 |
| |
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? > > 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@intel.com> > Signed-off-by: Dave Jones <davej@redhat.com> > > 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; >
Patch failed :(
root@rc-vaio:/usr/src/linux-2.6.16# patch -p1 < ../linux-2.6.16-p4-clockmod.diff patching file arch/i386/kernel/cpu/cpufreq/p4-clockmod.c Hunk #1 FAILED at 244. 1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/cpu/cpufreq/p4-clockmod.c.rej root@rc-vaio:/usr/src/linux-2.6.16#
rgds Sasa
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |