lkml.org 
[lkml]   [2003]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.5] Commented out printk causes change in program flow in cpufreq/p4-clockmod.c
Index: linux-2.5.69/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.69/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 p4-clockmod.c
--- linux-2.5.69/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c 6 May 2003 12:20:51 -0000 1.1.1.1
+++ linux-2.5.69/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c 10 May 2003 07:30:20 -0000
@@ -104,18 +104,20 @@ static int cpufreq_p4_setdc(unsigned int
}

rdmsr(MSR_IA32_THERM_STATUS, l, h);
+#if 0
if (l & 0x01)
-// printk(KERN_DEBUG PFX "CPU#%d currently thermal throttled\n", cpu);
-
+ printk(KERN_DEBUG PFX "CPU#%d currently thermal throttled\n", cpu);
+#endif
if (has_N44_O17_errata[cpu] && (newstate == DC_25PT || newstate == DC_DFLT))
newstate = DC_38PT;

rdmsr(MSR_IA32_THERM_CONTROL, l, h);
if (newstate == DC_DISABLE) {
-// printk(KERN_INFO PFX "CPU#%d disabling modulation\n", cpu);
+ /* printk(KERN_INFO PFX "CPU#%d disabling modulation\n", cpu); */
wrmsr(MSR_IA32_THERM_CONTROL, l & ~(1<<4), h);
} else {
-// printk(KERN_INFO PFX "CPU#%d setting duty cycle to %d%%\n", cpu, ((125 * newstate) / 10));
+ /* printk(KERN_INFO PFX "CPU#%d setting duty cycle to %d%%\n",
+ cpu, ((125 * newstate) / 10)); */
/* bits 63 - 5 : reserved
* bit 4 : enable/disable
* bits 3-1 : duty cycle
--
function.linuxpower.ca
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.032 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site