diff options
Diffstat (limited to 'arch/x86/kernel/cpu/intel_cacheinfo.c')
| -rw-r--r-- | arch/x86/kernel/cpu/intel_cacheinfo.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c index a7b0f8f1736..e4b8d189d7e 100644 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c @@ -516,6 +516,7 @@ 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; @@ -526,7 +527,7 @@ static int __cpuinit detect_cache_attributes(unsigned int cpu)  		return -ENOMEM;  	oldmask = current->cpus_allowed; -	retval = set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu)); +	retval = set_cpus_allowed_ptr(current, newmask);  	if (retval)  		goto out;  |