]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 5 Sep 2008 23:13:52 +0000 (16:13 -0700)
commitc72ff2d97716d0ace21ff1c9396fb00f496f039f
treeecdfc0dc851f440b0f5861b8c3fe6b582d516d1b
parent63e09aa4c7971e13179fbeb1c8a72fcbf85f62fd
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