From: Keir Fraser Subject: Re: [PATCH] x86/cpufreq: fix turbo mode detection Date: Thu, 6 May 2010 17:46:59 +0100 Message-ID: References: <4BE2FB6F02000078000019E5@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BE2FB6F02000078000019E5@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 06/05/2010 16:25, "Jan Beulich" 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