kernel/drivers/infiniband/hw/hfi1/sdma.c
.. .. @@ -853,14 +853,13 @@ 853 853 { 854 854 struct sdma_rht_node *rht_node; 855 855 struct sdma_engine *sde = NULL; 856 - const struct cpumask *current_mask = ¤t->cpus_allowed;857 856 unsigned long cpu_id; 858 857 859 858 /* 860 859 * To ensure that always the same sdma engine(s) will be 861 860 * selected make sure the process is pinned to this CPU only. 862 861 */ 863 - if (cpumask_weight(current_mask) != 1)862 + if (current->nr_cpus_allowed != 1)864 863 goto out; 865 864 866 865 cpu_id = smp_processor_id();