提交 93f7c93b 编写于 作者: J Julia Lawall 提交者: Tony Luck

[IA64] Use set_cpus_allowed_ptr

Use set_cpus_allowed_ptr rather than set_cpus_allowed.
Signed-off-by: NJulia Lawall <julia@diku.dk>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 80aa9bf0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册