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

bill davidsen
2003-09-11T20:16:57Z

In article <20030911165826.06f2fd16.ak@suse.de>,
Andi Kleen <ak@suse.de> wrote:

| 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.

Good idea, let's put stuff like this in hardware-dependent includes, and
just have a single line in the core code like
check_special_pfault_cases;
and that documents what is happening as well as avoiding reading around
it. It seems silly to leave a big hunk of code in when developers are
making efforts to drop cruft and keep Linux practical for embedded
systems.

People were willing to drop the whole prefetch feature, I don't see that
micro ifdefs are a bad thing, it's just that thought needs to go into
making the code readable.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.