aboutsummaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorSebastian Sanchez2017-05-04 05:14:16 -0700
committerDoug Ledford2017-05-04 19:31:46 -0400
commitade6f8af52f5187e6af6f774cff43e0bc60902e4 (patch)
tree8f880ec8392c437e83c3e3a48e27711b596aa532 /ipc
parentdd1ed1081750a1ce4daeeb53a0ae91af599ecdad (diff)
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 'ipc')
0 files changed, 0 insertions, 0 deletions