]> git.baikalelectronics.ru Git - kernel.git/commit
IB/{rdmavt,hfi1}: Change hrtimer add to use pinned version
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 16 May 2018 01:31:24 +0000 (18:31 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
commitca216883f4c27aa039284be057fff92ae415e6f9
treedebe30b90ad8f1220da686232988446ddc59d471
parenta92f315272dcd7b731fa46e8303ed2daf8cb48dd
IB/{rdmavt,hfi1}: Change hrtimer add to use pinned version

Given we are dealing with nano-second level timers, when the timer
pops, ensure it happens on the CPU which caused the timer to be set
in the first place.  This avoids excessive jitter from the desired
expiration time by avoiding the cost of switching our context to
another CPU that is cache cold for this given timer.

Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/sw/rdmavt/qp.c