Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata

From: Andi Kleen
Date: Thu Sep 11 2003 - 09:59:15 EST


On Thu, 11 Sep 2003 10:34:36 -0400
Jeff Garzik <jgarzik@xxxxxxxxx> wrote:

>
> > X86_GENERIC is merely an optimization hint (currently it only changes the cache
> > line size hint) It does not change anything related to correctness. Everything
> > that handles correctness is checked unconditionally.
>
> When, building non-Pentium4-related code when CONFIG_MPENTIUM4 &&
> !CONFIG_X86_GENERIC, it's OK that the code is incorrect for (picking
> example) AMD processors.

No 2.6 changed that. On 2.6 you can exchange the kernels.

[that was mainly done for distributions, but helps other users too]

> If you're doing crazy LinuxBIOS stuff where flash size is limited, it
> makes a lot of sense. (and I do such crazy things) The core 2.6 kernel
> has really bloated with optional features, IMO.

If you really want to save text space just use .bz2 compression
or compile the kernel with -Os. There are also other subsystems
that would benefit much more (better effort/cost ratio) than adding
micro #ifdefs to core code.

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