Skip to contentSkip to conversation

x86,amd: Remove unused wrmsr_amd

PATCH New Aravind Gopalakrishnan 1 participant 1 message Jun 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86,amd: Remove unused wrmsr_amd

After Andrew's commit 07884c9, all writes to password-protected MSR's are performed using wrmsr_amd_safe.

---
 xen/arch/x86/cpu/amd.c |   11 -----------
 1 file changed, 11 deletions(-)
xen/arch/x86/cpu/amd.c +0 -11
index ea158cb..3bf8410 100644
@@ -45,17 +45,6 @@ integer_param("cpuid_mask_thermal_ecx", opt_cpuid_mask_thermal_ecx);
 s8 __read_mostly opt_allow_unsafe;
 boolean_param("allow_unsafe", opt_allow_unsafe);
 
-static inline void wrmsr_amd(unsigned int index, unsigned int lo, 
-		unsigned int hi)
-{
-	asm volatile (
-		"wrmsr"
-		: /* No outputs */
-		: "c" (index), "a" (lo), 
-		"d" (hi), "D" (0x9c5a203a)
-	);
-}
-
 static inline int rdmsr_amd_safe(unsigned int msr, unsigned int *lo,
 				 unsigned int *hi)
 {
Signature · 1 line
1.7.9.5