]> 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)
commitfe6c895a2f5abc613ed170f7a79fefb13c117b3d
treedebe30b90ad8f1220da686232988446ddc59d471
parent4dd868ddcc5292349fb6514a2f574c0da0842323
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