]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitb6734c35af028f06772c0b2c836c7d579e6d4dad
treeecdfc0dc851f440b0f5861b8c3fe6b582d516d1b
parentb74b06c5f6612a72298f37baa65460a59c26ca67
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