PATCH: read extended cpu revision data

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Apr 2003 01:03:37 +0100


(Dave Jones)

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/arch/i386/kernel/cpu/common.c linux-2.5.67-ac1/arch/i386/kernel/cpu/common.c
--- linux-2.5.67/arch/i386/kernel/cpu/common.c 2003-03-18 16:46:45.000000000 +0000
+++ linux-2.5.67-ac1/arch/i386/kernel/cpu/common.c 2003-03-23 15:55:48.000000000 +0000
@@ -217,6 +217,10 @@
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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/