patch-2.3.31::arch/i386/kernel/setup.c AMD cpu features

Mike Galbraith (mikeg@weiden.de)
Sun, 12 Dec 1999 12:14:06 +0100 (CET)


Is this chunk correct?

diff -u --recursive --new-file v2.3.30/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
--- v2.3.30/linux/arch/i386/kernel/setup.c Tue Dec 7 09:32:40 1999
+++ linux/arch/i386/kernel/setup.c Tue Dec 7 23:01:40 1999
@@ -1419,15 +1419,14 @@
case X86_VENDOR_AMD:
if (c->x86 == 5 && c->x86_model == 6)
x86_cap_flags[10] = "sep";
- x86_cap_flags[16] = "fcmov";
+ if (c->x86 < 6)
+ x86_cap_flags[16] = "fcmov";
+ x86_cap_flags[22] = "mmxext";
+ x86_cap_flags[30] = "3dnowext";
x86_cap_flags[31] = "3dnow";
break;

or should it look something like this?

+ if (c->x86 >= 6) {
+ x86_cap_flags[16] = "fcmov";
+ x86_cap_flags[22] = "mmxext";
+ x86_cap_flags[30] = "3dnowext";
+ }
x86_cap_flags[31] = "3dnow";
break;

-Mike

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/