All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Ulrich Niedermann <linux-kernel@n-dimensional.de>
To: davej@codemonkey.org.uk
Cc: cpufreq@www.linux.org.uk
Subject: [PATCH 2.6] Make 'powersave' cpufreq governor a possible default governor
Date: Wed, 14 Jan 2004 22:17:43 +0100	[thread overview]
Message-ID: <86fzei1b7s.fsf@n-dimensional.de> (raw)

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.1511, 2004-01-13 04:10:11+01:00, kdim@n-dimensional.de
  [CPUFREQ] Make 'powersave' cpufreq governor a possible default governor


 drivers/cpufreq/Kconfig             |    8 ++++++++
 drivers/cpufreq/cpufreq_powersave.c |    5 +++--
 include/linux/cpufreq.h             |    3 +++
 3 files changed, 14 insertions(+), 2 deletions(-)


diff -Nru a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
--- a/drivers/cpufreq/Kconfig	Wed Jan 14 22:14:14 2004
+++ b/drivers/cpufreq/Kconfig	Wed Jan 14 22:14:14 2004
@@ -26,6 +26,14 @@
 	  the frequency statically to the highest frequency supported by
 	  the CPU.
 
+config CPU_FREQ_DEFAULT_GOV_POWERSAVE
+	bool "powersave"
+	select CPU_FREQ_GOV_POWERSAVE
+	help
+	  Use the CPUFreq governor 'powersave' as default. This sets
+	  the frequency statically to the lowest frequency supported by
+	  the CPU.
+
 config CPU_FREQ_DEFAULT_GOV_USERSPACE
 	bool "userspace"
 	select CPU_FREQ_GOV_USERSPACE
diff -Nru a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c
--- a/drivers/cpufreq/cpufreq_powersave.c	Wed Jan 14 22:14:14 2004
+++ b/drivers/cpufreq/cpufreq_powersave.c	Wed Jan 14 22:14:14 2004
@@ -29,11 +29,12 @@
 	return 0;
 }
                                                             
-static struct cpufreq_governor cpufreq_gov_powersave = {
+struct cpufreq_governor cpufreq_gov_powersave = {
 	.name		= "powersave",
 	.governor	= cpufreq_governor_powersave,
 	.owner		= THIS_MODULE,
 };
+EXPORT_SYMBOL(cpufreq_gov_powersave);
 
 
 static int __init cpufreq_gov_powersave_init(void)
@@ -52,5 +53,5 @@
 MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'");
 MODULE_LICENSE("GPL");
 
-module_init(cpufreq_gov_powersave_init);
+fs_initcall(cpufreq_gov_powersave_init);
 module_exit(cpufreq_gov_powersave_exit);
diff -Nru a/include/linux/cpufreq.h b/include/linux/cpufreq.h
--- a/include/linux/cpufreq.h	Wed Jan 14 22:14:14 2004
+++ b/include/linux/cpufreq.h	Wed Jan 14 22:14:14 2004
@@ -299,6 +299,9 @@
 #ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE
 extern struct cpufreq_governor cpufreq_gov_performance;
 #define CPUFREQ_DEFAULT_GOVERNOR	&cpufreq_gov_performance
+#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE)
+extern struct cpufreq_governor cpufreq_gov_powersave;
+#define CPUFREQ_DEFAULT_GOVERNOR	&cpufreq_gov_powersave
 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE)
 extern struct cpufreq_governor cpufreq_gov_userspace;
 #define CPUFREQ_DEFAULT_GOVERNOR	&cpufreq_gov_userspace

===================================================================


This BitKeeper patch contains the following changesets:
1.1511
## Wrapped with gzip_uu ##


M'XL( ":Q!4   \U6;6_;-A#^;/X*H@'6%H4EONF%+CPD39PL:%I[3M)MZ J!
MENA(M2QZ$ITVF'[\*/DE=A([:=( LPW9)N^.=\\]=\<=>%[(O-481<D8[,#?
M5*%;C:QI_LFL2%0F4BN29J.OE-FP8S66]BB2E_;('HSLS,@UP\ETF,M_@)'J
M"1W&\%+F1:N!+;I<T5<3V6KT.T?G)WM] -IMN!^+[$*>2@W;;:!5?BG2J-@5
M.DY59NE<9,58:F&%:EPN14N"$#%O!WL4.6Z)7<2\,L01QH)A&2'"?)==6ZN<
MM501I9;*+];-,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.gz  Atom feed

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=86fzei1b7s.fsf@n-dimensional.de \
    --to=linux-kernel@n-dimensional.de \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@codemonkey.org.uk \
    /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 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.