mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
[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:
parent
80aa9bf0d8
commit
93f7c93bee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user