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

Andi Kleen
2003-09-11T14:58:30Z

On Thu, 11 Sep 2003 10:34:36 -0400
Jeff Garzik <jgarzik@pobox.com> 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