]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/mm: Remove X86_FEATURE_USE_IBPB checks in cond_mitigation()
authorYosry Ahmed <yosry.ahmed@linux.dev>
Thu, 27 Feb 2025 01:27:08 +0000 (01:27 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Feb 2025 09:57:20 +0000 (10:57 +0100)
commita48dc42614cad39fac1ef55d690847fd07f0e3c6
tree06970f4fb6ec8aede52f1a460059fdbaa4443780
parent549435aab49ae83d60a08795de6cf0e866f3b2ec
x86/mm: Remove X86_FEATURE_USE_IBPB checks in cond_mitigation()

The check is performed when either switch_mm_cond_ibpb or
switch_mm_always_ibpb is set. In both cases, X86_FEATURE_USE_IBPB is
always set. Remove the redundant check.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20250227012712.3193063-3-yosry.ahmed@linux.dev
arch/x86/mm/tlb.c