Skip to contentSkip to conversation

x86/cpu/amd: Remove duplicate definition of MSRC001_1029

PATCH New Venkatesh Srinivas 1 participant 1 message Mar 23, 2021 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu/amd: Remove duplicate definition of MSRC001_1029

MSRC001_1029 had duplicate definitions in msr-index.h and amd.c. Remove the local definition in favor of the more widely used version.

---
 arch/x86/kernel/cpu/amd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86/kernel/cpu/amd.c +1 -3
index 347a956f71ca..31c592e5096e 100644
@@ -795,15 +795,13 @@ static void init_amd_gh(struct cpuinfo_x86 *c)
 		set_cpu_bug(c, X86_BUG_AMD_TLB_MMATCH);
 }
 
-#define MSR_AMD64_DE_CFG	0xC0011029
-
 static void init_amd_ln(struct cpuinfo_x86 *c)
 {
 	/*
 	 * Apply erratum 665 fix unconditionally so machines without a BIOS
 	 * fix work.
 	 */
-	msr_set_bit(MSR_AMD64_DE_CFG, 31);
+	msr_set_bit(MSR_F10H_DECFG, 31);
 }
 
 static bool rdrand_force;
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog