[IA64] Use set_cpus_allowed_ptr

Use set_cpus_allowed_ptr rather than set_cpus_allowed.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
Julia Lawall
2010-03-26 23:02:23 +01:00
committed by Tony Luck
parent 93f7c93bee
commit 552dce3a07
3 changed files with 9 additions and 10 deletions

View File

@@ -361,12 +361,12 @@ static int __cpuinit cache_add_dev(struct sys_device * sys_dev)
return 0;
oldmask = current->cpus_allowed;
retval = set_cpus_allowed(current, cpumask_of_cpu(cpu));
retval = set_cpus_allowed_ptr(current, cpumask_of(cpu));
if (unlikely(retval))
return retval;
retval = cpu_cache_sysfs_init(cpu);
set_cpus_allowed(current, oldmask);
set_cpus_allowed_ptr(current, &oldmask);
if (unlikely(retval < 0))
return retval;