From 4dcd2e25639e82323a790fb787bb62e82ae539f6 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 1 Aug 2002 00:56:09 -0700 Subject: [PATCH] Missing CPU idents. 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 | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/arch/i386/kernel/cpu/intel.c b/arch/i386/kernel/cpu/intel.c index 5193baa398f2..636e88762ef1 100644 --- a/arch/i386/kernel/cpu/intel.c +++ b/arch/i386/kernel/cpu/intel.c @@ -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, -- cgit v1.2.3