[PATCH 4/4] x86: add CONFIG_X86_MOVBE option
David Woodhouse
dwmw2 at infradead.org
Tue Dec 4 21:15:30 EST 2012
From: David Woodhouse <David.Woodhouse at intel.com>
Currently depends only on CONFIG_MATOM. This will change because big-core
CPUs are getting movbe too...
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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 f3b86d0..969f7a6 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -353,6 +353,10 @@ config X86_BSWAP
def_bool y
depends on X86_32 && !M386
+config X86_MOVBE
+ def_bool y
+ depends on MATOM
+
config X86_POPAD_OK
def_bool y
depends on X86_32 && !M386
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 05afcca..0e71d76 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)
--
1.8.0
More information about the Linuxppc-dev
mailing list