Re: [PATCH] 2.5.69 Changes to Kconfig and i386 Makefile to include support for various K7 optimizations

Dave Jones (davej@codemonkey.org.uk)
Wed, 14 May 2003 19:55:39 +0100


On Wed, May 14, 2003 at 07:40:10PM +0100, Thomas Horsten wrote:

> I think when GCC supports the different cores, it should be supported by the
> kernel scripts, the differences between the cores are real enough to have
> potential optimizations at least in theory (as far as I could see the only
> difference in GCC 3.2 is whether to use SSE, but that could change in the
> future).

To use SSE in kernel space, we need to wrap it in kernel_fpu_begin() /
kernel_fpu_end() pairs anyway. gcc doesn't (and can't) know this.

> I think it's a fairly simple patch that doesn't break anything

it's non-obvious that it'll break things when people use broken compilers.
read what I wrote before, several gcc versions got this horribly wrong.
"athlon4" was even tuned for 64bit at one point.

Take away the SSE, take away the broken compiler versions, and you'd be
left with something that would hardly show a blip on a benchmark.

Dave
-
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/