mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b25e74b56a
commit
e97636b487
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue