Commit 6a05c71a authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Use speedstep_lib's capabilites for ->get() in speedstep-ich.c

parent a24c67b2
...@@ -322,6 +322,10 @@ static int speedstep_cpu_exit(struct cpufreq_policy *policy) ...@@ -322,6 +322,10 @@ static int speedstep_cpu_exit(struct cpufreq_policy *policy)
return 0; return 0;
} }
static unsigned int speedstep_get(unsigned int cpu)
{
return speedstep_get_processor_frequency(speedstep_processor);
}
static struct freq_attr* speedstep_attr[] = { static struct freq_attr* speedstep_attr[] = {
&cpufreq_freq_attr_scaling_available_freqs, &cpufreq_freq_attr_scaling_available_freqs,
...@@ -335,6 +339,7 @@ static struct cpufreq_driver speedstep_driver = { ...@@ -335,6 +339,7 @@ static struct cpufreq_driver speedstep_driver = {
.target = speedstep_target, .target = speedstep_target,
.init = speedstep_cpu_init, .init = speedstep_cpu_init,
.exit = speedstep_cpu_exit, .exit = speedstep_cpu_exit,
.get = speedstep_get,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.attr = speedstep_attr, .attr = speedstep_attr,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment