FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 01-28-2010, 05:28 AM
Eric Miao
 
Default mvl-dove: Enable CPUFREQ by default

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(-)

============= 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);

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-03-2010, 01:16 PM
Andy Whitcroft
 
Default mvl-dove: Enable CPUFREQ by default

Applied to Lucid.

-apw

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 09:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org