aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/microcode_amd.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-24 21:56:03 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-24 21:56:03 +0100
commitbe9a6b532389149d4b0480f2a647e971b5ec5bda (patch)
tree64ca46b86f3574b66a4f9794bd7d9b3153be5b6a /xen/arch/x86/microcode_amd.c
parentbeb367d559f07dd19648c1aa4a54ee79e404059e (diff)
downloadxen-be9a6b532389149d4b0480f2a647e971b5ec5bda.tar.gz
xen-be9a6b532389149d4b0480f2a647e971b5ec5bda.tar.bz2
xen-be9a6b532389149d4b0480f2a647e971b5ec5bda.zip
x86: use rdmsrl/wrmsrl
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'xen/arch/x86/microcode_amd.c')
-rw-r--r--xen/arch/x86/microcode_amd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c
index 7cec273820..f90334439a 100644
--- a/xen/arch/x86/microcode_amd.c
+++ b/xen/arch/x86/microcode_amd.c
@@ -47,7 +47,6 @@ struct equiv_cpu_entry *equiv_cpu_table;
static int collect_cpu_info(int cpu, struct cpu_signature *csig)
{
struct cpuinfo_x86 *c = &cpu_data[cpu];
- uint32_t dummy;
memset(csig, 0, sizeof(*csig));
@@ -58,7 +57,7 @@ static int collect_cpu_info(int cpu, struct cpu_signature *csig)
return -EINVAL;
}
- rdmsr(MSR_AMD_PATCHLEVEL, csig->rev, dummy);
+ rdmsrl(MSR_AMD_PATCHLEVEL, csig->rev);
printk(KERN_INFO "microcode: collect_cpu_info: patch_id=0x%x\n",
csig->rev);
@@ -126,7 +125,7 @@ static int apply_microcode(int cpu)
{
unsigned long flags;
struct ucode_cpu_info *uci = &per_cpu(ucode_cpu_info, cpu);
- uint32_t rev, dummy;
+ uint32_t rev;
struct microcode_amd *mc_amd = uci->mc.mc_amd;
/* We should bind the task to the CPU */
@@ -140,7 +139,7 @@ static int apply_microcode(int cpu)
wrmsrl(MSR_AMD_PATCHLOADER, (unsigned long)&mc_amd->hdr.data_code);
/* get patch id after patching */
- rdmsr(MSR_AMD_PATCHLEVEL, rev, dummy);
+ rdmsrl(MSR_AMD_PATCHLEVEL, rev);
spin_unlock_irqrestore(&microcode_update_lock, flags);