]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] CPUFREQ: Support rev H AMD64s in powernow-k8
authorDave Jones <davej@redhat.com>
Sun, 13 May 2007 15:55:14 +0000 (11:55 -0400)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:54 +0000 (14:32 -0700)
Reported-by: Calvin Dodge <caldodge@gmail.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.h

index fe3b67005ebbb1d04ea17c20e804b47cf8cede7e..a8b0b51e0c0242bc08bd86b5c6d63b3184e6bbca 100644 (file)
@@ -521,7 +521,7 @@ static int check_supported_cpu(unsigned int cpu)
 
        if ((eax & CPUID_XFAM) == CPUID_XFAM_K8) {
                if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) ||
-                   ((eax & CPUID_XMOD) > CPUID_XMOD_REV_G)) {
+                   ((eax & CPUID_XMOD) > CPUID_XMOD_REV_H)) {
                        printk(KERN_INFO PFX "Processor cpuid %x not supported\n", eax);
                        goto out;
                }
index 0fb2a3001ba5505c8dbf743bc290f87d1b888641..0aca0b89748fb742266460062c23306b8f40f64f 100644 (file)
@@ -46,8 +46,8 @@ struct powernow_k8_data {
 #define CPUID_XFAM                     0x0ff00000      /* extended family */
 #define CPUID_XFAM_K8                  0
 #define CPUID_XMOD                     0x000f0000      /* extended model */
-#define CPUID_XMOD_REV_G               0x00060000
-#define CPUID_XFAM_10H                         0x00100000      /* family 0x10 */
+#define CPUID_XMOD_REV_H               0x00070000
+#define CPUID_XFAM_10H                 0x00100000      /* family 0x10 */
 #define CPUID_USE_XFAM_XMOD            0x00000f00
 #define CPUID_GET_MAX_CAPABILITIES     0x80000000
 #define CPUID_FREQ_VOLT_CAPABILITIES   0x80000007