From patchwork Tue Dec 4 10:15:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/4] x86: add CONFIG_X86_MOVBE option Date: Tue, 04 Dec 2012 00:15:30 -0000 From: David Woodhouse X-Patchwork-Id: 203592 Message-Id: <1354616130-21587-5-git-send-email-dwmw2@infradead.org> To: dwmw2@infradead.org Cc: linux-arch@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org From: David Woodhouse Currently depends only on CONFIG_MATOM. This will change because big-core CPUs are getting movbe too... Signed-off-by: David Woodhouse --- 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)