mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch -mm4] i386: fall back to sensible CPU model name
@ 2006-02-03  7:02 Chuck Ebbert
  0 siblings, 0 replies; only message in thread
From: Chuck Ebbert @ 2006-02-03  7:02 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Dave Jones

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

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

--- 2.6.16-rc1-mm4-386.orig/arch/i386/kernel/cpu/common.c
+++ 2.6.16-rc1-mm4-386/arch/i386/kernel/cpu/common.c
@@ -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! */
-- 
Chuck

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-03  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03  7:02 [patch -mm4] i386: fall back to sensible CPU model name Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®