aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_powersave.c
diff options
context:
space:
mode:
authorAlessandro Guido <alessandro.guido@gmail.com>2008-04-18 16:31:13 -0400
committerDave Jones <davej@redhat.com>2008-04-28 16:27:08 -0400
commit30d221db4439973076953e2ed44344fa92d1d09f (patch)
tree15e97af8ffa193aede37f7bcb50fe9e905a41dcb /drivers/cpufreq/cpufreq_powersave.c
parent605400a8ab44131698b206cbe253e48380daaa69 (diff)
[CPUFREQ] allow use of the powersave governor as the default one
Allow use of the powersave cpufreq governor as the default one for EMBEDDED configs. Signed-off-by: Alessandro Guido <alessandro.guido@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_powersave.c')
-rw-r--r--drivers/cpufreq/cpufreq_powersave.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_powersave.c b/drivers/cpufreq/cpufreq_powersave.c
index 13fe06b94b0a..88d2f44fba48 100644
--- a/drivers/cpufreq/cpufreq_powersave.c
+++ b/drivers/cpufreq/cpufreq_powersave.c
@@ -35,12 +35,12 @@ static int cpufreq_governor_powersave(struct cpufreq_policy *policy,
35 return 0; 35 return 0;
36} 36}
37 37
38static struct cpufreq_governor cpufreq_gov_powersave = { 38struct cpufreq_governor cpufreq_gov_powersave = {
39 .name = "powersave", 39 .name = "powersave",
40 .governor = cpufreq_governor_powersave, 40 .governor = cpufreq_governor_powersave,
41 .owner = THIS_MODULE, 41 .owner = THIS_MODULE,
42}; 42};
43 43EXPORT_SYMBOL(cpufreq_gov_powersave);
44 44
45static int __init cpufreq_gov_powersave_init(void) 45static int __init cpufreq_gov_powersave_init(void)
46{ 46{
@@ -58,5 +58,9 @@ MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>");
58MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'"); 58MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'");
59MODULE_LICENSE("GPL"); 59MODULE_LICENSE("GPL");
60 60
61#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE
62fs_initcall(cpufreq_gov_powersave_init);
63#else
61module_init(cpufreq_gov_powersave_init); 64module_init(cpufreq_gov_powersave_init);
65#endif
62module_exit(cpufreq_gov_powersave_exit); 66module_exit(cpufreq_gov_powersave_exit);