From: Kronos <kronos@kronoz.cjb.net>
To: davej@codemonkey.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Export available frequencies on K7 mobile CPUs
Date: Tue, 23 Dec 2003 19:04:29 +0100 [thread overview]
Message-ID: <20031223180429.GA11198@dreamland.darkstar.lan> (raw)
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
next reply other threads:[~2003-12-23 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-23 18:04 Kronos [this message]
2003-12-23 18:25 ` Prevailence of PS/2 Active Muxed devices? J.C. Wren
2003-12-23 18:47 ` J.C. Wren
2003-12-23 18:50 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031223180429.GA11198@dreamland.darkstar.lan \
--to=kronos@kronoz.cjb.net \
--cc=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®