提交 f8858b5e 编写于 作者: B Borislav Petkov

x86/cpu: Remove "noclflush"

Not really needed anymore and there's clearcpuid=.
Signed-off-by: NBorislav Petkov <bp@suse.de>
Reviewed-by: NKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220127115626.14179-7-bp@alien8.de
上级 76ea0025
...@@ -3444,8 +3444,6 @@ ...@@ -3444,8 +3444,6 @@
nocache [ARM] nocache [ARM]
noclflush [BUGS=X86] Don't use the CLFLUSH instruction
delayacct [KNL] Enable per-task delay accounting delayacct [KNL] Enable per-task delay accounting
nodsp [SH] Disable hardware DSP at boot time. nodsp [SH] Disable hardware DSP at boot time.
......
...@@ -1870,14 +1870,6 @@ void identify_secondary_cpu(struct cpuinfo_x86 *c) ...@@ -1870,14 +1870,6 @@ void identify_secondary_cpu(struct cpuinfo_x86 *c)
update_srbds_msr(); update_srbds_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);
void print_cpu_info(struct cpuinfo_x86 *c) void print_cpu_info(struct cpuinfo_x86 *c)
{ {
const char *vendor = NULL; const char *vendor = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册