From: Borislav Petkov Subject: Re: [PATCH] ACPI: Add fixups for AMD P-state figures. Date: Wed, 6 Mar 2013 11:30:50 +0100 Message-ID: <20130306103050.GB30677@pd.tnic> References: <1362512728-28770-1-git-send-email-konrad.wilk@oracle.com> <51365401.4050205@oracle.com> <20130305213319.GA8235@phenom.dumpdata.com> <5137150502000078000C375D@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5137150502000078000C375D@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Boris Ostrovsky , xen-devel@lists.xensource.com, stefan.bader@canonical.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Wed, Mar 06, 2013 at 09:05:57AM +0000, Jan Beulich wrote: > > + if (boot_cpu_data.x86 == 0x10) > > + px->core_frequency = (100 * (fid + 0x10)) >> did; > > + else > > + px->core_frequency = (100 * (fid + 8)) >> did; > > 0x10 vs 8? Please settle on decimal (preferred) or hex numbers in > a calculation like this. This is directly copied from upstream. Don't ask me why it was done like that. :-) -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --