aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/Makefile.cpu
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-03-25 16:29:06 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 09:10:52 -0800
commitdca99a38bccceda9e079d4c95abefbd9028605fe (patch)
tree1b583ae41d7b042e0249bb0b746c49fa6f09a4e8 /arch/i386/Makefile.cpu
parentc7ea1a96ec007ba761c9d5d11d788cd8fdd5c8b6 (diff)
[PATCH] x86-64: Use -mtune=generic for generic kernels
The upcomming gcc 4.2 got a new option -mtune=generic to tune code for both common AMD and Intel CPUs. Use this option when available for generic kernels. On x86-64 it is used with CONFIG_GENERIC_CPU. On i386 it is enabled with CONFIG_X86_GENERIC. It won't affect the base line CPU support in any ways and also not the minimum supported CPU. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/Makefile.cpu')
-rw-r--r--arch/i386/Makefile.cpu4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/i386/Makefile.cpu b/arch/i386/Makefile.cpu
index dcd936ef45d..a11befba26d 100644
--- a/arch/i386/Makefile.cpu
+++ b/arch/i386/Makefile.cpu
@@ -39,3 +39,7 @@ cflags-$(CONFIG_X86_ELAN) += -march=i486
# Geode GX1 support
cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx
+# add at the end to overwrite eventual tuning options from earlier
+# cpu entries
+cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic)
+