}
/* Return the current CPU frequency in kHz */
-static unsigned get_cur_freq(void)
+static unsigned int get_cur_freq(unsigned int cpu)
{
unsigned l, h;
+ if (cpu)
+ return 0;
rdmsr(MSR_IA32_PERF_STATUS, l, h);
return extract_clock(l);
goto err_kfree;
}
- cur_freq = get_cur_freq();
+ cur_freq = get_cur_freq(0);
for (i=0; i<p.state_count; i++) {
centrino_model->op_points[i].index = p.states[i].control;
}
}
- freq = get_cur_freq();
+ freq = get_cur_freq(0);
policy->governor = CPUFREQ_DEFAULT_GOVERNOR;
policy->cpuinfo.transition_latency = 10; /* 10uS transition latency */
.exit = centrino_cpu_exit,
.verify = centrino_verify,
.target = centrino_target,
+ .get = get_cur_freq,
.attr = centrino_attr,
.owner = THIS_MODULE,
};