aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/microcode_intel.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-29 05:54:24 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-29 05:54:24 -0400
commit3825c9e8d01e4310c40a3903a354c433c32a7b6f (patch)
tree87c94a8076bbb38bd2cf20ab9bc23d6f74f6a0a8 /arch/x86/kernel/microcode_intel.c
parent5d7b605245b1aa1a9cd6549b1f57d69273eb0c37 (diff)
parent6e86841d05f371b5b9b86ce76c02aaee83352298 (diff)
Merge commit 'v2.6.27-rc1' into x86/microcode
Conflicts: arch/x86/kernel/microcode.c Manual resolutions: arch/x86/kernel/microcode_amd.c arch/x86/kernel/microcode_intel.c Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/microcode_intel.c')
-rw-r--r--arch/x86/kernel/microcode_intel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c
index 831db5363dba..6da4a85ff465 100644
--- a/arch/x86/kernel/microcode_intel.c
+++ b/arch/x86/kernel/microcode_intel.c
@@ -461,7 +461,6 @@ static int apply_microcode_check_cpu(int cpu)
461 struct cpuinfo_x86 *c = &cpu_data(cpu); 461 struct cpuinfo_x86 *c = &cpu_data(cpu);
462 struct ucode_cpu_info *uci = ucode_cpu_info + cpu; 462 struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
463 cpumask_t old; 463 cpumask_t old;
464 cpumask_of_cpu_ptr(newmask, cpu);
465 unsigned int val[2]; 464 unsigned int val[2];
466 int err = 0; 465 int err = 0;
467 466
@@ -470,7 +469,7 @@ static int apply_microcode_check_cpu(int cpu)
470 return 0; 469 return 0;
471 470
472 old = current->cpus_allowed; 471 old = current->cpus_allowed;
473 set_cpus_allowed_ptr(current, newmask); 472 set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu));
474 473
475 /* Check if the microcode we have in memory matches the CPU */ 474 /* Check if the microcode we have in memory matches the CPU */
476 if (c->x86_vendor != X86_VENDOR_INTEL || c->x86 < 6 || 475 if (c->x86_vendor != X86_VENDOR_INTEL || c->x86 < 6 ||