diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-01-22 11:10:04 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-01-22 11:10:04 +0000 |
commit | df29e279e265fbb2195124e31d0003064ecdc126 (patch) | |
tree | 87b5f51ef17d9e2bb1e7f76134a4f30c07097a49 /xen/arch/x86/microcode_intel.c | |
parent | ea75815bab094d7472019766ec3ed7b3445170b5 (diff) | |
download | xen-df29e279e265fbb2195124e31d0003064ecdc126.tar.gz xen-df29e279e265fbb2195124e31d0003064ecdc126.tar.bz2 xen-df29e279e265fbb2195124e31d0003064ecdc126.zip |
x86 ucode: cancel redundant input parameter of microcode functions
Cancel redundant input parameter 'uci', since it can get from another
input parameter 'cpu' as index.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Diffstat (limited to 'xen/arch/x86/microcode_intel.c')
-rw-r--r-- | xen/arch/x86/microcode_intel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/microcode_intel.c b/xen/arch/x86/microcode_intel.c index 1d9e51b89a..4efd679660 100644 --- a/xen/arch/x86/microcode_intel.c +++ b/xen/arch/x86/microcode_intel.c @@ -244,11 +244,12 @@ static int get_matching_microcode(void *mc, int cpu) return 1; } -static int apply_microcode(struct ucode_cpu_info *uci, int cpu) +static int apply_microcode(int cpu) { unsigned long flags; unsigned int val[2]; int cpu_num = raw_smp_processor_id(); + struct ucode_cpu_info *uci = ucode_cpu_info + cpu_num; /* We should bind the task to the CPU */ BUG_ON(cpu_num != cpu); @@ -317,8 +318,7 @@ static long get_next_ucode_from_buffer(void **mc, const u8 *buf, return offset + total_size; } -static int cpu_request_microcode(struct ucode_cpu_info *uci, - int cpu, const void *buf, size_t size) +static int cpu_request_microcode(int cpu, const void *buf, size_t size) { long offset = 0; int error = 0; @@ -341,7 +341,7 @@ static int cpu_request_microcode(struct ucode_cpu_info *uci, */ if ( error == 1 ) { - apply_microcode(uci, cpu); + apply_microcode(cpu); error = 0; } xfree(mc); |