提交 e97636b4 编写于 作者: O Oleg Drokin 提交者: Rusty Russell

staging/lustre/o2iblnd: Don't use cpus_weight

cpus_weight and for_each_cpu_mask are deprecated, so replace them
with cpumask_weight and for_each_cpu respectively.
Signed-off-by: NOleg Drokin <green@linuxhacker.ru>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 b25e74b5
......@@ -638,8 +638,8 @@ kiblnd_get_completion_vector(kib_conn_t *conn, int cpt)
return 0;
/* hash NID to CPU id in this partition... */
off = do_div(nid, cpus_weight(*mask));
for_each_cpu_mask(i, *mask) {
off = do_div(nid, cpumask_weight(mask));
for_each_cpu(i, mask) {
if (off-- == 0)
return i % vectors;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册