aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/bugs.c
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-11-12 21:58:57 +0100
committerBorislav Petkov <bp@suse.de>2019-12-14 16:06:33 +0100
commit72c2ce9867d9e8535f8c29eb6d842d1caad281af (patch)
tree7382423855d6c227cfa43e84cbdc19f27ee65911 /arch/x86/kernel/cpu/bugs.c
parentLinux 5.5-rc1 (diff)
downloadlinux-dev-72c2ce9867d9e8535f8c29eb6d842d1caad281af.tar.xz
linux-dev-72c2ce9867d9e8535f8c29eb6d842d1caad281af.zip
x86/bugs: Move enum taa_mitigations to bugs.c
... because it is used only there. No functional changes. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: x86@kernel.org Link: https://lkml.kernel.org/r/20191112221823.19677-1-bp@alien8.de
Diffstat (limited to 'arch/x86/kernel/cpu/bugs.c')
-rw-r--r--arch/x86/kernel/cpu/bugs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
index 8bf64899f56a..ed54b3b21c39 100644
--- a/arch/x86/kernel/cpu/bugs.c
+++ b/arch/x86/kernel/cpu/bugs.c
@@ -286,6 +286,13 @@ early_param("mds", mds_cmdline);
#undef pr_fmt
#define pr_fmt(fmt) "TAA: " fmt
+enum taa_mitigations {
+ TAA_MITIGATION_OFF,
+ TAA_MITIGATION_UCODE_NEEDED,
+ TAA_MITIGATION_VERW,
+ TAA_MITIGATION_TSX_DISABLED,
+};
+
/* Default mitigation for TAA-affected CPUs */
static enum taa_mitigations taa_mitigation __ro_after_init = TAA_MITIGATION_VERW;
static bool taa_nosmt __ro_after_init;