]> git.hungrycats.org Git - linux/commitdiff
[PATCH] read extended cpu revision data
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 8 Apr 2003 02:36:03 +0000 (19:36 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 8 Apr 2003 02:36:03 +0000 (19:36 -0700)
(Dave Jones)

arch/i386/kernel/cpu/common.c

index 0d1f8e1a8343504a25bb48c0b13904cddc284c25..a114c2ab7f833248b40d78a293635265907c5c1e 100644 (file)
@@ -217,6 +217,10 @@ void __init generic_identify(struct cpuinfo_x86 * c)
                        c->x86_capability[4] = excap;
                        c->x86 = (tfms >> 8) & 15;
                        c->x86_model = (tfms >> 4) & 15;
+                       if (c->x86 == 0xf) {
+                               c->x86 += (tfms >> 20) & 0xff;
+                               c->x86_model += ((tfms >> 16) & 0xF) << 4;
+                       } 
                        c->x86_mask = tfms & 15;
                } else {
                        /* Have CPUID level 0 only - unheard of */