From dca99a38bccceda9e079d4c95abefbd9028605fe Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Sat, 25 Mar 2006 16:29:06 +0100 Subject: [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 Signed-off-by: Linus Torvalds --- arch/x86_64/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/x86_64/Makefile') diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile index 7405dfd6522..f5e48ba9bec 100644 --- a/arch/x86_64/Makefile +++ b/arch/x86_64/Makefile @@ -29,6 +29,7 @@ CHECKFLAGS += -D__x86_64__ -m64 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) +cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic) CFLAGS += $(cflags-y) CFLAGS += -m64 -- cgit v1.2.3