config CPUQUIET_FRAMEWORK
bool "Cpuquiet framework"
- default n
help
Cpuquiet implements pluggable policies for forcing cpu cores into a
quiescent state. Appropriate policies will save power without hurting
performance.
+
+if CPUQUIET_FRAMEWORK
+
+choice
+ prompt "Default CPUQuiet governor"
+ help
+ This option sets which CPUQuiet governor shall be loaded at
+ 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
+
+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
+endchoice
+
+endif
endmenu
INIT_DELAYED_WORK(&balanced_work, balanced_work_func);
up_delay = msecs_to_jiffies(100);
- down_delay = msecs_to_jiffies(500);
+ down_delay = msecs_to_jiffies(2000);
table = cpufreq_frequency_get_table(0);
for (count = 0; table[count].frequency != CPUFREQ_TABLE_END; count++);
}
MODULE_LICENSE("GPL");
+#ifdef CONFIG_CPUQUIET_DEFAULT_GOV_BALANCED
+fs_initcall(init_balanced);
+#else
module_init(init_balanced);
+#endif
module_exit(exit_balanced);
}
MODULE_LICENSE("GPL");
+#ifdef CONFIG_CPUQUIET_DEFAULT_GOV_USERSPACE
+fs_initcall(init_usermode);
+#else
module_init(init_usermode);
+#endif
module_exit(exit_usermode);