ntb_perf: Schedule based on time not on performance
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 20 Jun 2016 19:15:04 +0000 (13:15 -0600)
committerJon Mason <jdmason@kudzu.us>
Fri, 5 Aug 2016 14:21:06 +0000 (10:21 -0400)
commitfd2ecd885bab8e456298d0b702806ea736456c62
tree705a3ba20eba4662738fbc94e25a818ab4942783
parent19645a077120c6417e9dc5ad469c45194cf78a82
ntb_perf: Schedule based on time not on performance

When debugging performance problems, if some issue causes the ntb
hardware to be significantly slower than expected, ntb_perf will
hang requiring a reboot because it only schedules once every 4GB.

Instead, schedule based on jiffies so it will not hang the CPU if
the transfer is slow.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c