Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86939
b: refs/heads/master
c: 0e5aa8d
h: refs/heads/master
i:
  86937: 74e5534
  86935: 3336135
v: v3
  • Loading branch information
Dave Jones committed Mar 5, 2008
1 parent dc6cbe2 commit e414fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a07530b44547a892dae59f4e0f141f4e6f5e2e40
refs/heads/master: 0e5aa8d6218f9914b23e492debf653bda5598af3
8 changes: 6 additions & 2 deletions trunk/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -95,6 +94,10 @@ static int eps_set_state(struct eps_cpu_data *centaur,
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;
Expand All @@ -103,7 +106,8 @@ static int eps_set_state(struct eps_cpu_data *centaur,
current_multiplier = (lo >> 8) & 0xff;
printk(KERN_INFO "eps: Current multiplier = %d\n",
current_multiplier);

}
#endif
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
return err;
}
Expand Down

0 comments on commit e414fed

Please sign in to comment.