summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/Kconfig
diff options
context:
space:
mode:
authorChristian Krafft <krafft@de.ibm.com>2008-07-16 05:51:43 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-22 10:39:31 +1000
commit880e710580c09bf86cddac687fc492a8318934fe (patch)
tree96df30fa63b986bf6b8ef63febfaaba8bc80ee80 /arch/powerpc/platforms/cell/Kconfig
parent8204cba7fa0ca0752fdaec021dae2634788178aa (diff)
downloadop-kernel-dev-880e710580c09bf86cddac687fc492a8318934fe.zip
op-kernel-dev-880e710580c09bf86cddac687fc492a8318934fe.tar.gz
powerpc/cell/cpufreq: Add spu aware cpufreq governor
This patch adds a cpufreq governor that takes the number of running spus into account. It's very similar to the ondemand governor, but not as complex. Instead of hacking spu load into the ondemand governor it might be easier to have cpufreq accepting multiple governors per cpu in future. Don't know if this is the right way, but it would keep the governors simple. Signed-off-by: Christian Krafft <krafft@de.ibm.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Dave Jones <davej@redhat.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/Kconfig')
-rw-r--r--arch/powerpc/platforms/cell/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cell/Kconfig
index 3959fcf..6ee571f 100644
--- a/arch/powerpc/platforms/cell/Kconfig
+++ b/arch/powerpc/platforms/cell/Kconfig
@@ -107,6 +107,15 @@ config CBE_CPUFREQ_PMI
processor will not only be able to run at lower speed,
but also at lower core voltage.
+config CBE_CPUFREQ_SPU_GOVERNOR
+ tristate "CBE frequency scaling based on SPU usage"
+ depends on SPU_FS && CPU_FREQ
+ default m
+ help
+ This governor checks for spu usage to adjust the cpu frequency.
+ If no spu is running on a given cpu, that cpu will be throttled to
+ the minimal possible frequency.
+
endmenu
config OPROFILE_CELL
OpenPOWER on IntegriCloud