WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] x86/cpufreq: fix turbo mode detection

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86/cpufreq: fix turbo mode detection
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 6 May 2010 17:46:59 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 06 May 2010 09:47:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BE2FB6F02000078000019E5@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrtMCqtUuqSgzH3Q7SrT0oV/HfTkgAC5PoF
Thread-topic: [Xen-devel] [PATCH] x86/cpufreq: fix turbo mode detection
User-agent: Microsoft-Entourage/12.24.0.100205
On 06/05/2010 16:25, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

>> Doesn't the fact that acpi_cpufreq_driver.getavg is a single global function
>> pointer defeat the object of this patch? The effect of proper localised
>> checking of cpuid_ecx(6) is still global.
>> 
>> The check of cpuid_eax(6) yields a localised effect (on policy->turbo, where
>> policy does appear to be per-cpu). But whether 'fixing' that but not
>> properly the other is worthwhile, I'm not sure.
> 
> Yes, only one of the two were really an issue, but since I needed
> to move part of this code around, I decided to move it all at once
> in case later other bits (with non-global) meaning would get used.

Yeah, but do cpuid_ecx(6) cross-cpu differences really not matter, or is it
just that it has global effect so there was nothing more you could (easily)
do? I mean, if that latter then the solution is really half-baked isn't it.
And is half-baked worth doing?

 -- Keir



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