From 084a0ec1e3704d6c3714a665db755d581f797f67 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 3 Dec 2012 16:55:38 +0000 Subject: [PATCH] x86: add CONFIG_X86_MOVBE option Currently depends only on CONFIG_MATOM. This will change because big-core CPUs are getting movbe too... Signed-off-by: David Woodhouse Acked-by: H. Peter Anvin --- arch/x86/Kconfig.cpu | 4 ++++ arch/x86/Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu index c026cca5602c..d1476fa2ebf2 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu @@ -325,6 +325,10 @@ config X86_INVD_BUG def_bool y depends on M486 +config X86_MOVBE + def_bool y + depends on MATOM && !X86_GENERIC + config X86_ALIGNMENT_16 def_bool y depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1 diff --git a/arch/x86/Makefile b/arch/x86/Makefile index e71fc4279aab..21fbbfb07236 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -64,6 +64,7 @@ else $(call cc-option,-march=core2,$(call cc-option,-mtune=generic)) cflags-$(CONFIG_MATOM) += $(call cc-option,-march=atom) \ $(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic)) + cflags-$(CONFIG_X86_MOVBE) += $(call cc-option,-mmovbe) cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic) KBUILD_CFLAGS += $(cflags-y) -- 2.39.5