summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2008-02-15 18:11:14 -0500
committerDave Jones <davej@redhat.com>2008-03-05 14:45:31 -0500
commit0e5aa8d6218f9914b23e492debf653bda5598af3 (patch)
tree63345a03b0fd2cf9263a1ad8d0e3b0aa9647ffc6 /arch/x86/kernel/cpu/cpufreq/e_powersaver.c
parenta07530b44547a892dae59f4e0f141f4e6f5e2e40 (diff)
downloadlwn-0e5aa8d6218f9914b23e492debf653bda5598af3.tar.gz
lwn-0e5aa8d6218f9914b23e492debf653bda5598af3.zip
[CPUFREQ] Remove debugging message from e_powersaver
We don't need to printk a message every time we transition. Leave the code there, but ifdef'd out, as it's useful when adding support for new processors. Reported-by: Petr Titěra <P.Titera@century.cz> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/e_powersaver.c')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/e_powersaver.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/e_powersaver.c b/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
index 39f8cb18296c..c2f930d86640 100644
--- a/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
+++ b/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
@@ -55,7 +55,6 @@ static int eps_set_state(struct eps_cpu_data *centaur,
{
struct cpufreq_freqs freqs;
u32 lo, hi;
- u8 current_multiplier, current_voltage;
int err = 0;
int i;
@@ -95,6 +94,10 @@ postchange:
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
freqs.new = centaur->fsb * ((lo >> 8) & 0xff);
+#ifdef DEBUG
+ {
+ u8 current_multiplier, current_voltage;
+
/* Print voltage and multiplier */
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
current_voltage = lo & 0xff;
@@ -103,7 +106,8 @@ postchange:
current_multiplier = (lo >> 8) & 0xff;
printk(KERN_INFO "eps: Current multiplier = %d\n",
current_multiplier);
-
+ }
+#endif
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
return err;
}