mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org, linux@brodo.de
Subject: [PATCH] Add on-demand cpu-freq governor as default option
Date: Mon, 20 Sep 2004 13:12:30 +1000	[thread overview]
Message-ID: <cone.1095649950.909900.10443.502@pc.kolivas.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

This patch adds the option of using the on-demand cpu-frequency governor as 
the default governor in Kconfig.

Signed-off-by: Con Kolivas <kernel@kolivas.org>


[-- Attachment #2: ondemand_governor_default.diff --]
[-- Type: text/plain, Size: 1591 bytes --]

Index: linux-2.6.9-rc2-mm1/drivers/cpufreq/Kconfig
===================================================================
--- linux-2.6.9-rc2-mm1.orig/drivers/cpufreq/Kconfig	2004-09-19 19:49:57.716825544 +1000
+++ linux-2.6.9-rc2-mm1/drivers/cpufreq/Kconfig	2004-09-19 19:52:36.919623040 +1000
@@ -36,6 +36,17 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE
 	  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 governor does a periodic polling and 
+	  changes frequency based on the CPU utilization.
+	  The support for this governor depends on CPU capability to
+	  do fast frequency switching (i.e, very low latency frequency
+	  transitions). 
+
 endchoice
 
 config CPU_FREQ_GOV_PERFORMANCE
Index: linux-2.6.9-rc2-mm1/include/linux/cpufreq.h
===================================================================
--- linux-2.6.9-rc2-mm1.orig/include/linux/cpufreq.h	2004-09-19 19:49:57.765818096 +1000
+++ linux-2.6.9-rc2-mm1/include/linux/cpufreq.h	2004-09-19 19:52:36.919623040 +1000
@@ -323,6 +323,9 @@ extern struct cpufreq_governor cpufreq_g
 #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
 
 

             reply	other threads:[~2004-09-20  3:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20  3:12 Con Kolivas [this message]
2004-09-20 17:02 ` Dominik Brodowski
2004-09-20 22:43   ` Con Kolivas
2004-09-21 16:16     ` Dominik Brodowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cone.1095649950.909900.10443.502@pc.kolivas.org \
    --to=kernel@kolivas.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@brodo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®