From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] 1/2: cpufreq/PowerNow! in Xen: Time and platform changes Date: Thu, 30 Aug 2007 10:30:51 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" , Mark Langsdorf , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 30/8/07 07:41, "Tian, Kevin" wrote: > a) Current approach is simple to let Dom0 conduct frequency > change. That should be OK in the start, but at the same time we > should also consider the on-demand governor within Xen itself. > Xen can always get first-hand data about domain status, while > dom0 (either user-level or in-kernel) can't achieve in time. Fine- > grained frequency change is more likely to be achieved within > Xen directly. Personally I'm a fan of doing it in dom0 userspace, although doing it within Xen can also be argued for. Doing it in dom0 kernel doesn't seem very attractive apart from the obvious pragmatic advantage that all the code is already in the Linux kernel. :-) If we're doing it in the Linux kernel, I don't see much point in hacking up the defunct powernow (or equivalent Intel) code. Why not fix the generic acpi-cpufreq.c? That is supposed to work on any modern CPU. I'm not sure the 2.6.18 version is new enough, but I'd rather see a backported and fixed version of that file, rather than bother to maintain modified versions of obsolete source files. -- Keir