From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Haxby Subject: [PATCH] Change default cpufreq governor to ondemand Date: Fri, 15 Jan 2010 16:25:15 +0000 Message-ID: <4B5096EB.4090901@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030200030605060706030309" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------030200030605060706030309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------030200030605060706030309 Content-Type: text/x-patch; name="xen-set-default-omdemand.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-set-default-omdemand.patch" diff -r 88d2273c3942 xen/include/acpi/cpufreq/cpufreq.h --- a/xen/include/acpi/cpufreq/cpufreq.h Fri Jan 15 08:27:27 2010 +0000 +++ b/xen/include/acpi/cpufreq/cpufreq.h Fri Jan 15 16:07:03 2010 +0000 @@ -100,7 +100,7 @@ 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, --------------030200030605060706030309 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------030200030605060706030309--