]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/kernel/cpu/intel_cacheinfo.c
Merge branch 'linus' into x86/cpu
[mv-sheeva.git] / arch / x86 / kernel / cpu / intel_cacheinfo.c
index 1677b55371a5cfab96790caba63c6f80d62ccca8..3f46afbb1cf1946f52212ce96942429a9885cb04 100644 (file)
@@ -540,7 +540,6 @@ static int __cpuinit detect_cache_attributes(unsigned int cpu)
        unsigned long           j;
        int                     retval;
        cpumask_t               oldmask;
-       cpumask_of_cpu_ptr(newmask, cpu);
 
        if (num_cache_leaves == 0)
                return -ENOENT;
@@ -551,7 +550,7 @@ static int __cpuinit detect_cache_attributes(unsigned int cpu)
                return -ENOMEM;
 
        oldmask = current->cpus_allowed;
-       retval = set_cpus_allowed_ptr(current, newmask);
+       retval = set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu));
        if (retval)
                goto out;