[IA64] Use set_cpus_allowed_ptr
authorJulia Lawall <julia@diku.dk>
Fri, 26 Mar 2010 22:02:47 +0000 (23:02 +0100)
committerTony Luck <tony.luck@intel.com>
Tue, 18 May 2010 21:45:53 +0000 (14:45 -0700)
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>
arch/ia64/sn/kernel/sn2/sn_hwperf.c

index 55ac3c4e11d2e66ee8e707c1f25ff71c08acd8c2..f6c1c5fd075d6c0305334a5de54631e6c63e006e 100644 (file)
@@ -629,9 +629,9 @@ static int sn_hwperf_op_cpu(struct sn_hwperf_op_info *op_info)
                else {
                        /* migrate the task before calling SAL */ 
                        save_allowed = current->cpus_allowed;
-                       set_cpus_allowed(current, cpumask_of_cpu(cpu));
+                       set_cpus_allowed_ptr(current, cpumask_of(cpu));
                        sn_hwperf_call_sal(op_info);
-                       set_cpus_allowed(current, save_allowed);
+                       set_cpus_allowed_ptr(current, &save_allowed);
                }
        }
        r = op_info->ret;