public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m
@ 2004-06-03 12:17 Herbert Xu
  2004-06-03 12:37 ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2004-06-03 12:17 UTC (permalink / raw)
  To: davej, Linux Kernel Mailing List

[-- 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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m
  2004-06-03 12:17 [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m Herbert Xu
@ 2004-06-03 12:37 ` Dave Jones
  2004-06-03 16:59   ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2004-06-03 12:37 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Linux Kernel Mailing List

On Thu, Jun 03, 2004 at 10:17:04PM +1000, Herbert Xu wrote:
 > 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.
 
How strange, I could swear I already merged this patch into
the last round that went to Linus.  I'll make sure it gets
into the next one. There's been some corruption with the
cpufreq -bk tree the last few days which has only just got
fixed up, so I'm a little behind on cpufreq patches.

		Dave


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m
  2004-06-03 12:37 ` Dave Jones
@ 2004-06-03 16:59   ` Tony Lindgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2004-06-03 16:59 UTC (permalink / raw)
  To: Dave Jones, Herbert Xu, Linux Kernel Mailing List

* Dave Jones <davej@redhat.com> [040603 05:38]:
> On Thu, Jun 03, 2004 at 10:17:04PM +1000, Herbert Xu wrote:
>  > 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.
>  
> How strange, I could swear I already merged this patch into
> the last round that went to Linus.  I'll make sure it gets
> into the next one. There's been some corruption with the
> cpufreq -bk tree the last few days which has only just got
> fixed up, so I'm a little behind on cpufreq patches.

The Deja Vu was the same patch for powernow-k8.

Regards,

Tony

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-03 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 12:17 [CPUFREQ] Make powernow-k7 work with CONFIG_ACPI_PROCESSOR == m Herbert Xu
2004-06-03 12:37 ` Dave Jones
2004-06-03 16:59   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox