summaryrefslogtreecommitdiff
path: root/drivers/cpuquiet
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2012-09-11 17:25:11 +0300
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-09-14 05:14:02 -0700
commit404fa7098c94acd834afe26f8f8732c0b6f659c4 (patch)
tree728093ae17bb8828bff09748921a170cf4fe70d7 /drivers/cpuquiet
parent592ea6349cc3d6194c692073acaa5d8608cb6955 (diff)
cpuquiet: cleanup Kconfig and Makefile
Add options to enable/disable individual governors and adjust the Makefile to only build the selected governors. Change-Id: Ia3d36afd0f1d2e8cc622956fa0dc16c23cc9904d Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-on: http://git-master/r/131436 Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/cpuquiet')
-rw-r--r--drivers/cpuquiet/Kconfig48
-rw-r--r--drivers/cpuquiet/governors/Makefile4
2 files changed, 44 insertions, 8 deletions
diff --git a/drivers/cpuquiet/Kconfig b/drivers/cpuquiet/Kconfig
index 61e707312ad7..a2025baedf41 100644
--- a/drivers/cpuquiet/Kconfig
+++ b/drivers/cpuquiet/Kconfig
@@ -10,28 +10,62 @@ config CPUQUIET_FRAMEWORK
if CPUQUIET_FRAMEWORK
+config CPUQUIET_GOVERNOR_USERSPACE
+ bool "userspace"
+ default y
+ help
+ Manual control of the number of CPUs online.
+ This governor allows userspace to control the number of online CPUs.
+
+ If in doubt say Y.
+
+config CPUQUIET_GOVERNOR_BALANCED
+ bool "balanced"
+ default y
+ depends on CPU_FREQ
+ help
+ Scale the number of CPUs online depending on the CPU load.
+ This governor will scale the number of CPUs online depending on the
+ CPU load and the number of runnable threads.
+
+ If in doubt say Y.
+
+config CPUQUIET_GOVERNOR_RUNNABLE
+ bool "runnable threads"
+ default y
+ help
+ Scale the number of CPUs online depending on the number of runnable
+ threads. This governor will scale the number of CPUs online depending
+ on the number of runnable threads.
+
+ If in doubt say Y.
+
choice
prompt "Default CPUQuiet governor"
+ default CPUQUIET_DEFAULT_GOV_USERSPACE
help
This option sets which CPUQuiet governor shall be loaded at
- startup. If in doubt, select 'userspace'
+ startup. If in doubt, select 'userspace'.
config CPUQUIET_DEFAULT_GOV_USERSPACE
bool "userspace"
select CPUQUIET_GOVERNOR_USERSPACE
help
- Use the CPUQuiet governor 'userspace' as default. This disables
- any automatic hotplugging of cpus and allows manual control
- over the number of cpus online in the system
+ Use the CPUQuiet governor 'userspace' as default.
config CPUQUIET_DEFAULT_GOV_BALANCED
bool "balanced"
select CPUQUIET_GOVERNOR_BALANCED
depends on CPU_FREQ
help
- Use the CPUQuiet governor 'balanced' as default. This dynamically
- scales the number of cpus online in the system based on the cpu
- load
+ Use the CPUQuiet governor 'balanced' as default.
+
+config CPUQUIET_DEFAULT_GOV_RUNNABLE
+ bool "runnable threads"
+ select CPUQUIET_GOVERNOR_RUNNABLE
+ help
+ Use the CPUQuiet governor 'runnable threads' as default.
+
endchoice
endif
diff --git a/drivers/cpuquiet/governors/Makefile b/drivers/cpuquiet/governors/Makefile
index e199d73008f1..ad1a414447cf 100644
--- a/drivers/cpuquiet/governors/Makefile
+++ b/drivers/cpuquiet/governors/Makefile
@@ -1 +1,3 @@
-obj-y += userspace.o balanced.o runnable_threads.o
+obj-$(CONFIG_CPUQUIET_GOVERNOR_USERSPACE) += userspace.o
+obj-$(CONFIG_CPUQUIET_GOVERNOR_BALANCED) += balanced.o
+obj-$(CONFIG_CPUQUIET_GOVERNOR_RUNNABLE) += runnable_threads.o