]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Missing CPU idents.
authorDave Jones <davej@suse.de>
Thu, 1 Aug 2002 07:56:09 +0000 (00:56 -0700)
committerDave Jones <davej@suse.de>
Thu, 1 Aug 2002 07:56:09 +0000 (00:56 -0700)
Earlier Intel CPUs didn't have the cpuid namestring feature,
so we have to look them up in tables..

Fix by Patrick Mochel.

arch/i386/kernel/cpu/intel.c

index 5193baa398f22f6a376d57eb135f1c66793e603c..636e88762ef178d676eb09e1070a01bb7485000d 100644 (file)
@@ -232,15 +232,19 @@ static void __init init_intel(struct cpuinfo_x86 *c)
        if (c->x86 == 6) {
                switch (c->x86_model) {
                case 5:
-                       if (l2 == 0)
-                               p = "Celeron (Covington)";
-                       if (l2 == 256)
-                               p = "Mobile Pentium II (Dixon)";
+                       if (c->x86_mask == 0) {
+                               if (l2 == 0)
+                                       p = "Celeron (Covington)";
+                               else if (l2 == 256)
+                                       p = "Mobile Pentium II (Dixon)";
+                       }
                        break;
                        
                case 6:
                        if (l2 == 128)
                                p = "Celeron (Mendocino)";
+                       else if (c->x86_mask == 0 || c->x86_mask == 5)
+                               p = "Celeron-A";
                        break;
                        
                case 8:
@@ -350,6 +354,26 @@ static struct cpu_dev intel_cpu_dev __initdata = {
                          [8] "Mobile Pentium MMX"
                  }
                },
+               { X86_VENDOR_INTEL,     6,
+                 { 
+                         [0] "Pentium Pro A-step",
+                         [1] "Pentium Pro", 
+                         [3] "Pentium II (Klamath)", 
+                         [4] "Pentium II (Deschutes)", 
+                         [5] "Pentium II (Deschutes)", 
+                         [6] "Mobile Pentium II",
+                         [7] "Pentium III (Katmai)", 
+                         [8] "Pentium III (Coppermine)", 
+                         [10] "Pentium III (Cascades)",
+                         [11] "Pentium III (Tualatin)",
+                 }
+               },
+               { X86_VENDOR_INTEL,     15,
+                 {
+                         [1] "Pentium 4 (Unknown)",
+                         [5] "Pentium 4 (Foster)",
+                 }
+               },
        },
        c_init:         init_intel,
        c_identify:     generic_identify,