[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>
This commit is contained in:
parent
a07530b445
commit
0e5aa8d621
1 changed files with 6 additions and 2 deletions
|
@ -55,7 +55,6 @@ static int eps_set_state(struct eps_cpu_data *centaur,
|
||||||
{
|
{
|
||||||
struct cpufreq_freqs freqs;
|
struct cpufreq_freqs freqs;
|
||||||
u32 lo, hi;
|
u32 lo, hi;
|
||||||
u8 current_multiplier, current_voltage;
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -95,6 +94,10 @@ postchange:
|
||||||
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
|
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
|
||||||
freqs.new = centaur->fsb * ((lo >> 8) & 0xff);
|
freqs.new = centaur->fsb * ((lo >> 8) & 0xff);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
{
|
||||||
|
u8 current_multiplier, current_voltage;
|
||||||
|
|
||||||
/* Print voltage and multiplier */
|
/* Print voltage and multiplier */
|
||||||
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
|
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
|
||||||
current_voltage = lo & 0xff;
|
current_voltage = lo & 0xff;
|
||||||
|
@ -103,7 +106,8 @@ postchange:
|
||||||
current_multiplier = (lo >> 8) & 0xff;
|
current_multiplier = (lo >> 8) & 0xff;
|
||||||
printk(KERN_INFO "eps: Current multiplier = %d\n",
|
printk(KERN_INFO "eps: Current multiplier = %d\n",
|
||||||
current_multiplier);
|
current_multiplier);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
|
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue