]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit018740dc5ff7a2b0f0f0fbf89af2cee22f966a83
tree705a3ba20eba4662738fbc94e25a818ab4942783
parenta1cca75169ab5fc92724b866d96389c61a64dc3f
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