diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-17 18:07:10 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-17 18:07:10 +0000 |
commit | bec38bcec682e4b0416762ef83caea5d3ae37c18 (patch) | |
tree | 857f091ad8babc9e2fda1a60adc554186309b6b1 | |
parent | 9ae90516621d9bb92e05c57a1de74a0297898569 (diff) | |
download | xen-bec38bcec682e4b0416762ef83caea5d3ae37c18.tar.gz xen-bec38bcec682e4b0416762ef83caea5d3ae37c18.tar.bz2 xen-bec38bcec682e4b0416762ef83caea5d3ae37c18.zip |
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@oracle.com>
-rw-r--r-- | xen/include/acpi/cpufreq/cpufreq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/acpi/cpufreq/cpufreq.h index 2f24c4fed6..0cfda5d653 100644 --- a/xen/include/acpi/cpufreq/cpufreq.h +++ b/xen/include/acpi/cpufreq/cpufreq.h @@ -100,7 +100,7 @@ extern struct cpufreq_governor cpufreq_gov_powersave; 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, |