* [PATCH -next] acpi: get_bios_limit static inline when CPU_FREQ=n
[not found] <20091116181453.b42247cf.sfr@canb.auug.org.au>
@ 2009-11-16 23:32 ` Randy Dunlap
2009-11-16 23:32 ` [PATCH -next] x86/cpufreq: don't use acpi_processor_get_bios_limit when not available Randy Dunlap
1 sibling, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2009-11-16 23:32 UTC (permalink / raw)
To: Stephen Rothwell, lenb, akpm; +Cc: linux-next, LKML, linux-acpi
From: Randy Dunlap <randy.dunlap@oracle.com>
For CONFIG_CPU_FREQ=n, make acpi_processor_get_bios_limit()
static inline so that multiple source files that use this
header file do not create multiple definitions of the function.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/acpi/processor.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20091113.orig/include/acpi/processor.h
+++ linux-next-20091113/include/acpi/processor.h
@@ -318,7 +318,7 @@ static inline int acpi_processor_ppc_has
}
return 0;
}
-int acpi_processor_get_bios_limit(int cpu, unsigned int *limit)
+static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit)
{
return -ENODEV;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH -next] x86/cpufreq: don't use acpi_processor_get_bios_limit when not available
[not found] <20091116181453.b42247cf.sfr@canb.auug.org.au>
2009-11-16 23:32 ` [PATCH -next] acpi: get_bios_limit static inline when CPU_FREQ=n Randy Dunlap
@ 2009-11-16 23:32 ` Randy Dunlap
1 sibling, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2009-11-16 23:32 UTC (permalink / raw)
To: Stephen Rothwell, lenb, cpufreq, akpm; +Cc: linux-next, LKML, linux-acpi, davej
From: Randy Dunlap <randy.dunlap@oracle.com>
Only reference this function when the kconfig makes it available.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
arch/x86/kernel/cpu/cpufreq/powernow-k7.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20091113.orig/arch/x86/kernel/cpu/cpufreq/powernow-k7.c
+++ linux-next-20091113/arch/x86/kernel/cpu/cpufreq/powernow-k7.c
@@ -717,7 +717,9 @@ static struct cpufreq_driver powernow_dr
.verify = powernow_verify,
.target = powernow_target,
.get = powernow_get,
+#ifdef CONFIG_X86_POWERNOW_K7_ACPI
.bios_limit = acpi_processor_get_bios_limit,
+#endif
.init = powernow_cpu_init,
.exit = powernow_cpu_exit,
.name = "powernow-k7",
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-16 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20091116181453.b42247cf.sfr@canb.auug.org.au>
2009-11-16 23:32 ` [PATCH -next] acpi: get_bios_limit static inline when CPU_FREQ=n Randy Dunlap
2009-11-16 23:32 ` [PATCH -next] x86/cpufreq: don't use acpi_processor_get_bios_limit when not available Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox