x86: add NOPL as a synthetic CPU feature bit
authorH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 00:39:32 +0000 (17:39 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 01:22:17 +0000 (18:22 -0700)
commit7e00df5818964298c9821365a6cb7a8304227c5c
tree5fdfc9a40deb0a4157bddffed28322a2ff9e5875
parente2fe16d91228a005811335fbc4fbad5d4f5b75af
x86: add NOPL as a synthetic CPU feature bit

The long noops ("NOPL") are supposed to be detected by family >= 6.
Unfortunately, several non-Intel x86 implementations, both hardware
and software, don't obey this dictum.  Instead, probe for NOPL
directly by executing a NOPL instruction and see if we get #UD.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/common_64.c
arch/x86/kernel/cpu/feature_names.c
include/asm-x86/cpufeature.h
include/asm-x86/required-features.h