Commit a553f9a7 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Export powernow-k7 scaling frequencies

From: Kronos <kronos at kronoz.cjb.net>
 
The following patch make powernow-k7.c export supported frequencies via
sysfs. I'm trying to write a scaling deamon and I need to know them.
parent da40777e
...@@ -389,15 +389,29 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy) ...@@ -389,15 +389,29 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)
policy->cur = maximum_speed; policy->cur = maximum_speed;
cpufreq_frequency_table_get_attr(powernow_table, policy->cpu);
return cpufreq_frequency_table_cpuinfo(policy, powernow_table); return cpufreq_frequency_table_cpuinfo(policy, powernow_table);
} }
static int powernow_cpu_exit (struct cpufreq_policy *policy) {
cpufreq_frequency_table_put_attr(policy->cpu);
return 0;
}
static struct freq_attr* powernow_table_attr[] = {
&cpufreq_freq_attr_scaling_available_freqs,
NULL,
};
static struct cpufreq_driver powernow_driver = { static struct cpufreq_driver powernow_driver = {
.verify = powernow_verify, .verify = powernow_verify,
.target = powernow_target, .target = powernow_target,
.init = powernow_cpu_init, .init = powernow_cpu_init,
.exit = powernow_cpu_exit,
.name = "powernow-k7", .name = "powernow-k7",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.attr = powernow_table_attr,
}; };
static int __init powernow_init (void) static int __init powernow_init (void)
......
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