Skip to content

Commit f8858b5

Browse files
committed
x86/cpu: Remove "noclflush"
Not really needed anymore and there's clearcpuid=. Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 76ea002 commit f8858b5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3444,8 +3444,6 @@
34443444

34453445
nocache [ARM]
34463446

3447-
noclflush [BUGS=X86] Don't use the CLFLUSH instruction
3448-
34493447
delayacct [KNL] Enable per-task delay accounting
34503448

34513449
nodsp [SH] Disable hardware DSP at boot time.

arch/x86/kernel/cpu/common.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,14 +1870,6 @@ void identify_secondary_cpu(struct cpuinfo_x86 *c)
18701870
update_srbds_msr();
18711871
}
18721872

1873-
static __init int setup_noclflush(char *arg)
1874-
{
1875-
setup_clear_cpu_cap(X86_FEATURE_CLFLUSH);
1876-
setup_clear_cpu_cap(X86_FEATURE_CLFLUSHOPT);
1877-
return 1;
1878-
}
1879-
__setup("noclflush", setup_noclflush);
1880-
18811873
void print_cpu_info(struct cpuinfo_x86 *c)
18821874
{
18831875
const char *vendor = NULL;

0 commit comments

Comments
 (0)