projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b25e74b
)
staging/lustre/o2iblnd: Don't use cpus_weight
author
Oleg Drokin
<
[email protected]
>
Wed, 4 Mar 2015 06:07:53 +0000
(
01:07
-0500)
committer
Rusty Russell
<
[email protected]
>
Thu, 5 Mar 2015 04:57:06 +0000
(15:27 +1030)
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 <
[email protected]
>
Signed-off-by: Rusty Russell <
[email protected]
>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
index 65101691966915d2ace2204b18e6a4590696ff8d..a25816ab9e53ef217a981778052173267c24cd44 100644
(file)
--- a/
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
+++ b/
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
@@
-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, cpu
s_weight(*
mask));
- for_each_cpu
_mask(i, *
mask) {
+ off = do_div(nid, cpu
mask_weight(
mask));
+ for_each_cpu
(i,
mask) {
if (off-- == 0)
return i % vectors;
}