projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
840d283
)
x86, cpufeature: If we disable CLFLUSH, we should disable CLFLUSHOPT
author
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 27 Feb 2014 16:36:31 +0000
(08:36 -0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 27 Feb 2014 16:36:31 +0000
(08:36 -0800)
If we explicitly disable the use of CLFLUSH, we should disable the use
of CLFLUSHOPT as well.
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link:
http://lkml.kernel.org/n/tip-jtdv7btppr4jgzxm3sxx1e74@git.kernel.org
arch/x86/kernel/cpu/common.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/common.c
b/arch/x86/kernel/cpu/common.c
index 2c6ac6f2b5b1340a4af3cd20bd6810257c39eba9..cca53d88762a88aa994a178ef47f060f489def68 100644
(file)
--- a/
arch/x86/kernel/cpu/common.c
+++ b/
arch/x86/kernel/cpu/common.c
@@
-1026,6
+1026,7
@@
__setup("show_msr=", setup_show_msr);
static __init int setup_noclflush(char *arg)
{
setup_clear_cpu_cap(X86_FEATURE_CLFLUSH);
+ setup_clear_cpu_cap(X86_FEATURE_CLFLUSHOPT);
return 1;
}
__setup("noclflush", setup_noclflush);