]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/microcode_amd.c
Merge commit 'v2.6.27-rc1' into x86/microcode
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / microcode_amd.c
index fd9e68e8889997837ef02acd3054a68ffc001348..07e52beacb449a692a27d43c19829fdf1126487f 100644 (file)
@@ -445,7 +445,6 @@ static int apply_microcode_check_cpu_amd(int cpu)
        struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
        unsigned int rev;
        cpumask_t old;
-       cpumask_of_cpu_ptr(newmask, cpu);
        int err = 0;
 
        /* Check if the microcode is available */
@@ -453,7 +452,7 @@ static int apply_microcode_check_cpu_amd(int cpu)
                return 0;
 
        old = current->cpus_allowed;
-       set_cpus_allowed(current, newmask);
+       set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu));
 
        /* Check if the microcode we have in memory matches the CPU */
        if (c->x86_vendor != X86_VENDOR_AMD || c->x86 < 16)