x86,amd: remove unused wrmsr_amd
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Tue, 10 Jun 2014 10:04:35 +0000 (12:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jun 2014 10:04:35 +0000 (12:04 +0200)
After Andrew's commit 07884c9, all writes to password-protected
MSR's are performed using wrmsr_amd_safe.

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
xen/arch/x86/cpu/amd.c

index ba6b63e7cbcdb6d677eacde24466731345ca6717..5e78f87f7838dae55ea249d0b59b52b1b8d3363e 100644 (file)
@@ -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)
 {