Skip to content

Commit

Permalink
[IA64] Use set_cpus_allowed_ptr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Tony Luck committed May 18, 2010
1 parent 80aa9bf commit 93f7c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/sn/kernel/sn2/sn_hwperf.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 93f7c93

Please sign in to comment.