Skip to contentSkip to conversation

i386: fall back to sensible CPU model name

PATCH New Chuck Ebbert 1 participant 1 message Feb 3, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: fall back to sensible CPU model name

When vendor-specific i386 initialization code is unavailable the kernel falls back to a default CPU model name. Make that model name reflect the CPU family instead of an internal vendor index.

Tested on Pentium II (family 6 model 5).

/proc/cpuinfo before:
model name : ff/05

after:

        model name     : 06/05
arch/i386/kernel/cpu/common.c +1 -1
@@ -426,7 +426,7 @@ void __cpuinit identify_cpu(struct cpuin
 		else
 			/* Last resort... */
 			sprintf(c->x86_model_id, "%02x/%02x",
-				c->x86_vendor, c->x86_model);
+				c->x86, c->x86_model);
 	}
 
 	/* Now the feature flags better reflect actual CPU features! */
Signature · 1 line
Chuck