summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/feature_names.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-18 17:39:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-18 18:22:17 -0700
commit7e00df5818964298c9821365a6cb7a8304227c5c (patch)
tree5fdfc9a40deb0a4157bddffed28322a2ff9e5875 /arch/x86/kernel/cpu/feature_names.c
parente2fe16d91228a005811335fbc4fbad5d4f5b75af (diff)
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>
Diffstat (limited to 'arch/x86/kernel/cpu/feature_names.c')
-rw-r--r--arch/x86/kernel/cpu/feature_names.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/feature_names.c b/arch/x86/kernel/cpu/feature_names.c
index e43ad4ad4cb..c9017799497 100644
--- a/arch/x86/kernel/cpu/feature_names.c
+++ b/arch/x86/kernel/cpu/feature_names.c
@@ -39,7 +39,8 @@ const char * const x86_cap_flags[NCAPINTS*32] = {
NULL, NULL, NULL, NULL,
"constant_tsc", "up", NULL, "arch_perfmon",
"pebs", "bts", NULL, NULL,
- "rep_good", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "rep_good", NULL, NULL, NULL,
+ "nopl", NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
/* Intel-defined (#2) */