[PATCH] powerpc/cell: fix dependency in cpufreq

Michael Neuling mikey at neuling.org
Tue Feb 10 11:46:52 EST 2009


cbe_cpufreq.c uses cbe_cpufreq_has_pmi which is provided by
cbe_cpufreq_pmi.c.  Hence CBE_CPUFREQ depends on CBE_CPUFREQ_PMI.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
I'm not 100% sure is this the right fix.  Should CBE_CPUFREQ really
depend on CBE_CPUFREQ_PMI?

 arch/powerpc/platforms/cell/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-ozlabs/arch/powerpc/platforms/cell/Kconfig
===================================================================
--- linux-2.6-ozlabs.orig/arch/powerpc/platforms/cell/Kconfig
+++ linux-2.6-ozlabs/arch/powerpc/platforms/cell/Kconfig
@@ -111,7 +111,7 @@ config CBE_THERM
 
 config CBE_CPUFREQ
 	tristate "CBE frequency scaling"
-	depends on CBE_RAS && CPU_FREQ
+	depends on CBE_RAS && CPU_FREQ && CBE_CPUFREQ_PMI
 	default m
 	help
 	  This adds the cpufreq driver for Cell BE processors.
@@ -120,7 +120,7 @@ config CBE_CPUFREQ
 
 config CBE_CPUFREQ_PMI
 	tristate "CBE frequency scaling using PMI interface"
-	depends on CBE_CPUFREQ && PPC_PMI && EXPERIMENTAL
+	depends on PPC_PMI && EXPERIMENTAL
 	default n
 	help
 	  Select this, if you want to use the PMI interface



More information about the Linuxppc-dev mailing list