diff options
author | Andi Kleen <ak@suse.de> | 2006-03-25 10:29:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:10:52 -0500 |
commit | dca99a38bccceda9e079d4c95abefbd9028605fe (patch) | |
tree | 1b583ae41d7b042e0249bb0b746c49fa6f09a4e8 /arch/x86_64/Makefile | |
parent | c7ea1a96ec007ba761c9d5d11d788cd8fdd5c8b6 (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/x86_64/Makefile')
-rw-r--r-- | arch/x86_64/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile index 7405dfd6522b..f5e48ba9bec7 100644 --- a/arch/x86_64/Makefile +++ b/arch/x86_64/Makefile | |||
@@ -29,6 +29,7 @@ CHECKFLAGS += -D__x86_64__ -m64 | |||
29 | 29 | ||
30 | cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) | 30 | cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) |
31 | cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) | 31 | cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) |
32 | cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic) | ||
32 | CFLAGS += $(cflags-y) | 33 | CFLAGS += $(cflags-y) |
33 | 34 | ||
34 | CFLAGS += -m64 | 35 | CFLAGS += -m64 |