Re: [Patch] Enable SSE for AMD Athlon (Thoroughbred) in 2.4.20

From: Dave Jones (davej@codemonkey.org.uk)
Date: Thu Feb 20 2003 - 13:45:25 EST


On Sat, Feb 15, 2003 at 12:44:53AM +0100, Daniel Egger wrote:
> Hija,
>
> please include the obvious oneliner attached in 2.4.21 to help
> the poor folks having recent Athlons. :)
>
> A similar change for the just released Barton would also be nice but
> I do not have the model number handy.

It's model 10. Somehow they skipped model 9.

> --- arch/i386/kernel/setup.c.orig 2003-02-03 13:26:38.000000000 +0100
> +++ arch/i386/kernel/setup.c 2003-02-14 14:14:12.000000000 +0100
> @@ -1421,7 +1421,7 @@
> * If the BIOS didn't enable it already, enable it
> * here.
> */
> - if (c->x86_model == 6 || c->x86_model == 7) {
> + if (c->x86_model == 6 || c->x86_model == 7 || c->x86_model == 8) {
> if (!test_bit(X86_FEATURE_XMM,
> &c->x86_capability)) {
> printk(KERN_INFO

if (c->x86_model >= 6 && c->x86_model <= 10) {

should do the right thing on all current models with SSE afaics..

                Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
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/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:30 EST