]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] CPUFREQ: Correct revision mask for powernow-k8
authorDave Jones <davej@redhat.com>
Mon, 14 May 2007 22:27:29 +0000 (18:27 -0400)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:54 +0000 (14:32 -0700)
Mark Langsdorf points out that the correct define for this
revision bump is 0x80000.  Also to save us having to keep
renaming the #define, give it a more meaningful name.

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 a8b0b51e0c0242bc08bd86b5c6d63b3184e6bbca..e295d871b761913833ffa674dbf9033793a1c9c5 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_H)) {
+                   ((eax & CPUID_XMOD) > CPUID_XMOD_REV_MASK)) {
                        printk(KERN_INFO PFX "Processor cpuid %x not supported\n", eax);
                        goto out;
                }
index 0aca0b89748fb742266460062c23306b8f40f64f..575541fb0e5c7c63cf955aa15139b2aec8ce3cb5 100644 (file)
@@ -46,7 +46,7 @@ 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_H               0x00070000
+#define CPUID_XMOD_REV_MASK            0x00080000
 #define CPUID_XFAM_10H                 0x00100000      /* family 0x10 */
 #define CPUID_USE_XFAM_XMOD            0x00000f00
 #define CPUID_GET_MAX_CAPABILITIES     0x80000000