From: Herbert Xu <herbert@gondor.apana.org.au>
To: davej@redhat.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m
Date: Thu, 3 Jun 2004 22:17:04 +1000 [thread overview]
Message-ID: <20040603121704.GB8164@gondor.apana.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 350 bytes --]
Hi:
The last round of updates to powernow-k7.c broke it when
CONFIG_ACPI_PROCESSOR is built as a module. This patch
fixes that.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 1175 bytes --]
===== arch/i386/kernel/cpu/cpufreq/powernow-k7.c 1.51 vs edited =====
--- 1.51/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 2004-05-08 00:34:07 +10:00
+++ edited/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 2004-06-03 22:11:08 +10:00
@@ -28,7 +28,7 @@
#include <asm/io.h>
#include <asm/system.h>
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
#include <linux/acpi.h>
#include <acpi/processor.h>
#endif
@@ -63,7 +63,7 @@
u8 numpstates;
};
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
union powernow_acpi_control_t {
struct {
unsigned long fid:5,
@@ -293,7 +293,7 @@
}
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
struct acpi_processor_performance *acpi_processor_perf;
@@ -642,7 +642,7 @@
static void __exit powernow_exit (void)
{
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
if (acpi_processor_perf) {
acpi_processor_unregister_performance(acpi_processor_perf, 0);
kfree(acpi_processor_perf);
next reply other threads:[~2004-06-03 12:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-03 12:17 Herbert Xu [this message]
2004-06-03 12:37 ` [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m Dave Jones
2004-06-03 16:59 ` Tony Lindgren
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=20040603121704.GB8164@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davej@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).