lkml.org 
[lkml]   [2003]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Export available frequencies on K7 mobile CPUs

Hi,
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.

--- linux-2.6/arch/i386/kernel/cpu/cpufreq/powernow-k7.c.orig Fri Dec 19 19:27:48 2003
+++ linux-2.6/arch/i386/kernel/cpu/cpufreq/powernow-k7.c Fri Dec 21 20:42:21 2003
@@ -389,15 +389,29 @@
policy->cpuinfo.transition_latency = latency;
policy->cur = maximum_speed;

+ cpufreq_frequency_table_get_attr(powernow_table, policy->cpu);
+
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 = {
.verify = powernow_verify,
.target = powernow_target,
.init = powernow_cpu_init,
+ .exit = powernow_cpu_exit,
.name = "powernow-k7",
.owner = THIS_MODULE,
+ .attr = powernow_table_attr,
};

static int __init powernow_init (void)

Luca
--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
La vasca da bagno fu inventata nel 1850, il telefono nel 1875.
Se fossi vissuto nel 1850, avrei potuto restare in vasca per 25 anni
senza sentir squillare il telefono
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.032 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site