[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] Change default cpufreq governor to ondemand



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263909568 0
# Node ID 36159ea86bbd2b8ed240ee1a4795a9b544fafbeb
# Parent  b1d32e0ced2d9a967acfa477b6183f63ae33ee22
Change default cpufreq governor to ondemand

Back in c/s 18950 the default cpufreq governor was set to userspace
(it had previously been performance).  However, since there is no
supplied userspace program or script that will change the frequency
this is at best a no-op.  Worse, on some hardware with some BIOS
revisions, this actually sets the CPUs running at their lowest
frequency rather than their highest and there is a corresponding (and
initially puzzling) drop in performance.

This patch changes the default governor to "ondemand" which should
make it the same as the Linux default and will provide power savings
for the majority without needing to write a userspace governor.  For
those that want to install their own governor, that is still possible.

Signed-off-by: John Haxby <john.haxby@xxxxxxxxxx>
xen-unstable changeset:   20816:757359a36785
xen-unstable date:        Sun Jan 17 18:07:10 2010 +0000
---
 xen/include/acpi/cpufreq/cpufreq.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r b1d32e0ced2d -r 36159ea86bbd xen/include/acpi/cpufreq/cpufreq.h
--- a/xen/include/acpi/cpufreq/cpufreq.h        Tue Jan 19 13:58:49 2010 +0000
+++ b/xen/include/acpi/cpufreq/cpufreq.h        Tue Jan 19 13:59:28 2010 +0000
@@ -100,7 +100,7 @@ extern int cpufreq_register_governor(str
 extern int cpufreq_register_governor(struct cpufreq_governor *governor);
 extern int cpufreq_unregister_governor(struct cpufreq_governor *governor);
 extern struct cpufreq_governor *__find_governor(const char *governor);
-#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
+#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs
 
 /* pass a target to the cpufreq driver */
 extern int __cpufreq_driver_target(struct cpufreq_policy *policy,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.