瀏覽代碼

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: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Oleg Drokin 10 年之前
父節點
當前提交
4a316f7916
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c

+ 2 - 2
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c

@@ -638,8 +638,8 @@ kiblnd_get_completion_vector(kib_conn_t *conn, int cpt)
 		return 0;
 		return 0;
 
 
 	/* hash NID to CPU id in this partition... */
 	/* 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)
 		if (off-- == 0)
 			return i % vectors;
 			return i % vectors;
 	}
 	}