lkml.org 
[lkml]   [2008]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: fix cpu MHz reporting for AMD family 0x11

* Andreas Herrmann3 <andreas.herrmann3@amd.com> wrote:

> Fix cpu MHz reporting for AMD family 0x11 when powernow-k8 is
> disabled.
>
> Just adhere to the CONSTANT_TSC feature bit for AMD CPUs when deciding
> whether cpu_khz needs calibration. The additional check for CPU family
> is not needed and prevents calibration for future CPUs.

> cpu_khz = tsc_khz;
> if (cpu_has(&boot_cpu_data, X86_FEATURE_CONSTANT_TSC) &&
> - boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
> - boot_cpu_data.x86 == 16)
> + (boot_cpu_data.x86_vendor == X86_VENDOR_AMD))
> cpu_khz = calculate_cpu_khz();

thanks Andreas, applied!

Ingo


\
 
 \ /
  Last update: 2008-01-25 13:45    [W:0.053 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site