Patchwork [GIT,PULL,lucid] mvl-dove: Enable CPUFREQ by default

login
register
mail settings
Submitter Eric Miao
Date Jan. 28, 2010, 6:28 a.m.
Message ID <f17812d71001272228q7fff35d1h522aad4c0566219b@mail.gmail.com>
Download mbox | patch
Permalink /patch/43849/
State Accepted
Delegated to: Andy Whitcroft
Headers show

Comments

Eric Miao - Jan. 28, 2010, 6:28 a.m.
The following changes since commit 46edf937c731f048b60d4ceeaa15bdd91e721b3e:
  Andy Whitcroft (1):
        UBUNTU: Ubuntu-2.6.32-200.5

are available in the git repository at:

  git://kernel.ubuntu.com/ycmiao/ubuntu-lucid.git lp513254

Eric Miao (1):
      UBUNTU: SAUCE: Enable CPUFREQ by default

 arch/arm/mach-dove/common.c  |    8 ++++----
 arch/arm/mach-dove/cpufreq.c |    6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
Andy Whitcroft - Feb. 3, 2010, 2:16 p.m.
Applied to Lucid.

-apw

Patch

============= PATCH FOLLOWS =============
commit efcd307a23636b25828dffc6224a788df0bb96d0
Author: Eric Miao <eric.y.miao@gmail.com>
Date:   Wed Jan 27 21:55:13 2010 +0800

    UBUNTU: SAUCE: Enable CPUFREQ by default

    BugLink: http://bugs.launchpad.net/bugs/513254

    CPUFREQ isn't enabled even if the support is compiled in, unless turned
    on explicitly in command line by 'cpufreq_enable'. Change the option to
    'cpufreq_disable' so user can still turn this off in command line, but
    make CPUFREQ enabled by default.

    Signed-off-by: Eric Miao <eric.miao@canonical.com>

diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 903cf36..f7d808b 100755
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -169,14 +169,14 @@  static int __init pm_disable_setup(char *__unused)

 __setup("pm_disable", pm_disable_setup);

-int cpufreq_enable = 0;
-static int __init cpufreq_enable_setup(char *__unused)
+int cpufreq_disable = 0;
+static int __init cpufreq_disable_setup(char *__unused)
 {
-     cpufreq_enable = 1;
+     cpufreq_disable = 1;
      return 1;
 }

-__setup("cpufreq_enable", cpufreq_enable_setup);
+__setup("cpufreq_disable", cpufreq_disable_setup);

 int dvs_enable = 0;
 static int __init dvs_enable_setup(char *__unused)
diff --git a/arch/arm/mach-dove/cpufreq.c b/arch/arm/mach-dove/cpufreq.c
index 5bb4df5..4408c91 100644
--- a/arch/arm/mach-dove/cpufreq.c
+++ b/arch/arm/mach-dove/cpufreq.c
@@ -292,11 +292,11 @@  static struct cpufreq_driver dove_freq_driver = {
         .attr           = dove_freq_attr,
 };

-extern int cpufreq_enable;
+extern int cpufreq_disable;

 static int __init dove_cpufreq_init(void)
 {
-	if (!cpufreq_enable)
+	if (cpufreq_disable)
 		return 0;

         return cpufreq_register_driver(&dove_freq_driver);
@@ -304,7 +304,7 @@  static int __init dove_cpufreq_init(void)

 static void __exit dove_cpufreq_exit(void)
 {
-	if (!cpufreq_enable)
+	if (cpufreq_disable)
 		return;

         cpufreq_unregister_driver(&dove_freq_driver);