summaryrefslogtreecommitdiff
path: root/drivers/mfd/tps65090.c
diff options
context:
space:
mode:
authorSebastian Sanchez <sebastian.sanchez@intel.com>2017-05-04 15:14:16 +0300
committerDoug Ledford <dledford@redhat.com>2017-05-05 02:31:46 +0300
commitade6f8af52f5187e6af6f774cff43e0bc60902e4 (patch)
tree8f880ec8392c437e83c3e3a48e27711b596aa532 /drivers/mfd/tps65090.c
parentdd1ed1081750a1ce4daeeb53a0ae91af599ecdad (diff)
downloadlinux-ade6f8af52f5187e6af6f774cff43e0bc60902e4.tar.xz
IB/hfi1: Get rid of divide when setting the tx request header
Div instructions show costly in profiles when the tx request header is set. Using right shift instead of a divide operation reduces the cycles spent in the function that sets the tx request header as shown in the profile. Use right shift operation instead. Profile before change: 43.24% 009 | |--23.41%-- user_sdma_send_pkts | | | |--99.90%-- hfi1_user_sdma_process_requestAfter: Profile after change: 45.75% 009 | |--14.81%-- user_sdma_send_pkts | | | |--99.95%-- hfi1_user_sdma_process_request 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>
Diffstat (limited to 'drivers/mfd/tps65090.c')
0 files changed, 0 insertions, 0 deletions