Commit:     519efbc0b3b6004a3b98d66a446bce30852c8171
Parent:     cd7d72bb27a8c7502a602bdc299f1bb0a9357975
Author:     Andreas Herrmann3 <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 30 13:33:35 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:33:35 2008 +0100

    x86: fix cpu MHz reporting for AMD family 0x11
    Fix cpu MHz reporting for AMD family 0x11 when powernow-k8 is
    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.
    Signed-off-by: Andreas Herrmann <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 arch/x86/kernel/time_64.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c
index 61b17f5..0380795 100644
--- a/arch/x86/kernel/time_64.c
+++ b/arch/x86/kernel/time_64.c
@@ -120,8 +120,7 @@ void __init time_init(void)
        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();
        if (unsynchronized_tsc())
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to