IB/hfi1: Get rid of divide in pio buffer allocator
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Tue, 25 Oct 2016 20:12:28 +0000 (13:12 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:37:27 +0000 (16:37 -0500)
commit2474d775d9e2f935ff6840c8b21b4262afacc821
tree488fd7bff5f3edf1eafec2434ff6b3564cb1202c
parentfe4d924396a861937256293ff4a84b76b84854d8
IB/hfi1: Get rid of divide in pio buffer allocator

The div instruction shows costly in profiles.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/pio.c
drivers/infiniband/hw/hfi1/pio.h