x86: Require MOVBE feature in cpuid when we use it
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 28 Jan 2013 17:49:50 +0000 (17:49 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 00:59:55 +0000 (16:59 -0800)
commit2b9b6d8c715b23fa119261c32ad360681f4464a9
treec26f79a3e138b5739e1a1f6b95c0ef58b64c2949
parent83a57a4de1a222c351667ef9a0fedaac1295e85b
x86: Require MOVBE feature in cpuid when we use it

Add MOVBE to asm/required-features.h so we check for it during startup
and don't bother checking for it later.

CONFIG_MATOM is used because it corresponds to -march=atom in the
Makefiles.  If the rules get more complicated it may be necessary to
make this an explicit Kconfig option which uses -mmovbe/-mno-movbe to
control the use of this instruction explicitly.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Link: http://lkml.kernel.org/r/1359395390.3529.65.camel@shinybook.infradead.org
[ hpa: added a patch description ]
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/required-features.h