From: Dominik Brodowski <linux@dominikbrodowski.de>
To: len.brown@intel.com
Cc: acpi-devel@lists.sourceforge.net, cpufreq@www.linux.org.uk
Subject: [PATCH 1/2] 2.6: use scaling_available_freqs in acpi-cpufreq-ioport driver
Date: Fri, 20 Feb 2004 09:31:50 +0100 [thread overview]
Message-ID: <20040220083149.GA10215@dominikbrodowski.de> (raw)
Export an array of supported frequencies in sysfs [scaling_available_frequencies]
arch/i386/kernel/cpu/cpufreq/acpi.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletion(-)
diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/acpi.c linux/arch/i386/kernel/cpu/cpufreq/acpi.c
--- linux-original/arch/i386/kernel/cpu/cpufreq/acpi.c 2004-02-18 10:22:09.000000000 +0100
+++ linux/arch/i386/kernel/cpu/cpufreq/acpi.c 2004-02-18 22:29:03.112571968 +0100
@@ -306,7 +306,7 @@
data->freq_table[i].frequency = CPUFREQ_TABLE_END;
}
- result = cpufreq_frequency_table_cpuinfo(policy, &data->freq_table[0]);
+ result = cpufreq_frequency_table_cpuinfo(policy, data->freq_table);
if (result) {
goto err_freqfree;
}
@@ -321,6 +321,7 @@
(u32) data->acpi_data.states[i].power,
(u32) data->acpi_data.states[i].transition_latency);
+ cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu);
return_VALUE(result);
err_freqfree:
@@ -345,6 +346,7 @@
ACPI_FUNCTION_TRACE("acpi_cpufreq_cpu_exit");
if (data) {
+ cpufreq_frequency_table_put_attr(policy->cpu);
acpi_io_data[policy->cpu] = NULL;
acpi_processor_unregister_performance(&data->acpi_data, policy->cpu);
kfree(data);
@@ -354,6 +356,11 @@
}
+static struct freq_attr* acpi_cpufreq_attr[] = {
+ &cpufreq_freq_attr_scaling_available_freqs,
+ NULL,
+};
+
static struct cpufreq_driver acpi_cpufreq_driver = {
.verify = acpi_cpufreq_verify,
.target = acpi_cpufreq_target,
@@ -361,6 +368,7 @@
.exit = acpi_cpufreq_cpu_exit,
.name = "acpi-cpufreq",
.owner = THIS_MODULE,
+ .attr = acpi_cpufreq_attr,
};
next reply other threads:[~2004-02-20 8:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-20 8:31 Dominik Brodowski [this message]
2004-02-24 12:56 ` [ACPI] [PATCH 1/2] 2.6: use scaling_available_freqs in acpi-cpufreq-ioport driver Pavel Machek
2004-02-24 14:43 ` Dominik Brodowski
2004-02-25 10:26 ` Pavel Machek
2004-02-24 21:00 ` Tomasz Ciolek
2004-02-24 22:16 ` Pavel Machek
2004-02-26 17:28 ` Bruno Ducrot
2004-02-26 21:50 ` Pavel Machek
2004-03-01 17:54 ` Bruno Ducrot
2004-03-01 18:03 ` Pavel Machek
[not found] ` <20040301180325.GA562-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-03-03 16:22 ` Bruno Ducrot
2004-03-12 14:52 ` [ACPI] " Dominik Brodowski
2004-03-12 20:01 ` Pavel Machek
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=20040220083149.GA10215@dominikbrodowski.de \
--to=linux@dominikbrodowski.de \
--cc=acpi-devel@lists.sourceforge.net \
--cc=cpufreq@www.linux.org.uk \
--cc=len.brown@intel.com \
/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