[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091116153242.3c194a5a.randy.dunlap@oracle.com>
Date: Mon, 16 Nov 2009 15:32:42 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>, lenb@...nel.org,
cpufreq@...r.kernel.org, akpm <akpm@...ux-foundation.org>
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
linux-acpi@...r.kernel.org, davej@...hat.com
Subject: [PATCH -next] x86/cpufreq: don't use acpi_processor_get_bios_limit
when not available
From: Randy Dunlap <randy.dunlap@...cle.com>
Only reference this function when the kconfig makes it available.
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.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",
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists