Skip to contentSkip to conversation

undefined reference to `acpi_processor_register_performance

PATCH In review water modem 3 participants 5 messages Jun 18, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

2.6.7 compile error

LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xcfeb): In function `powernow_acpi_init':
: undefined reference to acpi_processor_register_performance' arch/i386/kernel/built-in.o(.text+0xd01c): In function powernow_acpi_init':
: undefined reference to acpi_processor_unregister_performance' arch/i386/kernel/built-in.o(.exit.text+0x32): In function powernow_exit':
: undefined reference to `acpi_processor_unregister_performance'
make: *** [.tmp_vmlinux1] Error 1
[root@enlaptop linux-2.6.7]#

#1 lore raw

On Thu, 17 Jun 2004 20:35:12 +0000 water modem wrote:

| 2.6.7 compile error
| 
|    LD      .tmp_vmlinux1
| arch/i386/kernel/built-in.o(.text+0xcfeb): In function 
| `powernow_acpi_init':
| : undefined reference to `acpi_processor_register_performance'
| arch/i386/kernel/built-in.o(.text+0xd01c): In function 
| `powernow_acpi_init':
| : undefined reference to `acpi_processor_unregister_performance'
| arch/i386/kernel/built-in.o(.exit.text+0x32): In function `powernow_exit':
| : undefined reference to `acpi_processor_unregister_performance'
| make: *** [.tmp_vmlinux1] Error 1
| [root@enlaptop linux-2.6.7]#

got a .config for this? i'm having a little trouble duplicating it.

thanks,
--
~Randy

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

PATCH 1/1 undefined reference to `acpi_processor_register_performance

Several CPU_FREQ options need ACPI_PROCESSOR interfaces to build.

diffstat:=

 arch/i386/kernel/cpu/cpufreq/Kconfig |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/i386/kernel/cpu/cpufreq/Kconfig renamed from arch/i386/kernel/cpu/cpufreq/Kconfig~cpu_freqs +3 -3
diff -Naurp ./arch/i386/kernel/cpu/cpufreq/Kconfig~cpu_freqs ./arch/i386/kernel/cpu/cpufreq/Kconfig
@@ -80,7 +80,7 @@ config X86_POWERNOW_K6
 
 config X86_POWERNOW_K7
 	tristate "AMD Mobile Athlon/Duron PowerNow!"
-	depends on CPU_FREQ_TABLE
+	depends on CPU_FREQ_TABLE && ACPI_PROCESSOR
 	help
 	  This adds the CPUFreq driver for mobile AMD K7 mobile processors.
 
@@ -90,7 +90,7 @@ config X86_POWERNOW_K7
 
 config X86_POWERNOW_K8
 	tristate "AMD Opteron/Athlon64 PowerNow!"
-	depends on CPU_FREQ && EXPERIMENTAL
+	depends on CPU_FREQ && ACPI_PROCESSOR && EXPERIMENTAL
 	help
 	  This adds the CPUFreq driver for mobile AMD Opteron/Athlon64 processors.
 
@@ -111,7 +111,7 @@ config X86_GX_SUSPMOD
 
 config X86_SPEEDSTEP_CENTRINO
 	tristate "Intel Enhanced SpeedStep"
-	depends on CPU_FREQ_TABLE
+	depends on CPU_FREQ_TABLE && ACPI_PROCESSOR
 	help
 	  This adds the CPUFreq driver for Enhanced SpeedStep enabled
 	  mobile CPUs.  This means Intel Pentium M (Centrino) CPUs.
#4 lore raw
Quoted 3 lines · Randy.Dunlap

Several CPU_FREQ options need ACPI_PROCESSOR interfaces to build.

Hmm, it should be optional. Ie, if you don't have ACPI enabled, you should still be able to use these drivers (the k7 one at least), you just won't be able to use the ACPI fallback.

Dave

#5 lore raw

On Fri, 18 Jun 2004 12:25:49 +0100 Dave Jones wrote:

| On Thu, Jun 17, 2004 at 09:58:12PM -0700, Randy.Dunlap wrote:
|  > 
|  > Several CPU_FREQ options need ACPI_PROCESSOR interfaces
|  > to build.
| 
| Hmm, it should be optional. Ie, if you don't have ACPI enabled,
| you should still be able to use these drivers (the k7 one at least),
| you just won't be able to use the ACPI fallback.

Hm, I see what you mean, but how do we handle source files that call an optional kernel API (depending on CONFIG_xyz)?

IOW, building a cpufreq driver in-kernel that wants to call acpi_processor_register_performance(), where CONFIG_ACPI_PROCESSOR=m, needs to be prevented....

--
~Randy