All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: allow ondemand governor as default
@ 2005-03-04  1:13 Rob Weryk
  2005-03-06 17:06 ` Dominik Brodowski
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Weryk @ 2005-03-04  1:13 UTC (permalink / raw)
  To: cpufreq


Hi,

The patch below (against 2.6.11) allows the ondemand cpufreq
governor to be selected as the default.  If it's acceptable,
please apply.

(I'm not subscribed, so please cc me on replies, thanks.)

Signed-off-by: Rob Weryk <rjweryk@uwo.ca>


diff -ur linux-2.6.11/drivers/cpufreq/Kconfig robbie-2.6.11/drivers/cpufreq/Kconfig
--- linux-2.6.11/drivers/cpufreq/Kconfig	2005-03-02 14:08:42.000000000 -0500
+++ robbie-2.6.11/drivers/cpufreq/Kconfig	2005-03-02 14:29:28.000000000 -0500
@@ -69,6 +69,13 @@
 	  program shall be able to set the CPU dynamically without having
 	  to enable the userspace governor manually.
 
+config CPU_FREQ_DEFAULT_GOV_ONDEMAND
+	bool "ondemand"
+	select CPU_FREQ_GOV_ONDEMAND
+	help
+	  Use the CPUFreq governor 'ondemand' as default.  This dynamically
+	  adjusts the CPU frequency based on the CPU use.
+
 endchoice
 
 config CPU_FREQ_GOV_PERFORMANCE
diff -ur linux-2.6.11/include/linux/cpufreq.h robbie-2.6.11/include/linux/cpufreq.h
--- linux-2.6.11/include/linux/cpufreq.h	2005-03-02 14:08:47.000000000 -0500
+++ robbie-2.6.11/include/linux/cpufreq.h	2005-03-02 14:21:52.000000000 -0500
@@ -264,6 +264,9 @@
 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE)
 extern struct cpufreq_governor cpufreq_gov_userspace;
 #define CPUFREQ_DEFAULT_GOVERNOR	&cpufreq_gov_userspace
+#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND)
+extern struct cpufreq_governor cpufreq_gov_dbs;
+#define CPUFREQ_DEFAULT_GOVERNOR	&cpufreq_gov_dbs
 #endif

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-08 17:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04  1:13 [PATCH] cpufreq: allow ondemand governor as default Rob Weryk
2005-03-06 17:06 ` Dominik Brodowski
2005-03-06 21:51   ` Dave Jones
2005-03-06 23:02     ` Rob Weryk
2005-03-07 17:41     ` Bruno Ducrot
2005-03-07 17:57       ` Dominik Brodowski
2005-03-08  9:40         ` Bruno Ducrot
2005-03-08 17:37           ` Dominik Brodowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.