Commit 54a20f8c authored by Chuck Ebbert's avatar Chuck Ebbert Committed by Linus Torvalds

[PATCH] 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
Signed-off-by: default avatarChuck Ebbert <76306.1226@compuserve.com>
Acked-by: default avatar"Seth, Rohit" <rohit.seth@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 30e931d4
...@@ -430,7 +430,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) ...@@ -430,7 +430,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
else else
/* Last resort... */ /* Last resort... */
sprintf(c->x86_model_id, "%02x/%02x", 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! */ /* Now the feature flags better reflect actual CPU features! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment