diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:31:34 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-07-13 11:31:34 +0100 |
commit | 749182393c49818b03172986aa2ba6afe3615c5d (patch) | |
tree | db7fa0f934e8550c33ad098fd552417b18fc37eb /xen/arch/x86/microcode_amd.c | |
parent | 0e20e0e1c7f61dbce3d1bbc64a280c9af92df3ce (diff) | |
download | xen-749182393c49818b03172986aa2ba6afe3615c5d.tar.gz xen-749182393c49818b03172986aa2ba6afe3615c5d.tar.bz2 xen-749182393c49818b03172986aa2ba6afe3615c5d.zip |
x86: move ucode_cpu_info into per-CPU space
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/microcode_amd.c')
-rw-r--r-- | xen/arch/x86/microcode_amd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index 77053c258d..3031f436d7 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -68,7 +68,7 @@ static int collect_cpu_info(int cpu, struct cpu_signature *csig) static int microcode_fits(void *mc, int cpu) { - struct ucode_cpu_info *uci = ucode_cpu_info + cpu; + struct ucode_cpu_info *uci = &per_cpu(ucode_cpu_info, cpu); struct microcode_header_amd *mc_header = mc; unsigned int current_cpu_id; unsigned int equiv_cpu_id = 0x0; @@ -125,7 +125,7 @@ out: static int apply_microcode(int cpu) { unsigned long flags; - struct ucode_cpu_info *uci = ucode_cpu_info + cpu; + struct ucode_cpu_info *uci = &per_cpu(ucode_cpu_info, cpu); uint32_t rev, dummy; struct microcode_amd *mc_amd = uci->mc.mc_amd; @@ -253,7 +253,7 @@ static int cpu_request_microcode(int cpu, const void *buf, size_t size) unsigned long offset = 0; int error = 0; int ret; - struct ucode_cpu_info *uci = ucode_cpu_info + cpu; + struct ucode_cpu_info *uci = &per_cpu(ucode_cpu_info, cpu); void *mc; /* We should bind the task to the CPU */ |