ntb: make DMA_OUT_RESOURCE_TO HZ independent
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 22 Aug 2016 16:51:36 +0000 (18:51 +0200)
committerJon Mason <jdmason@kudzu.us>
Sun, 13 Nov 2016 21:48:29 +0000 (16:48 -0500)
schedule_timeout_* takes a timeout in jiffies but the code currently is
passing in a constant which makes this timeout HZ dependent, so pass it
through msecs_to_jiffies() to fix this up.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c

index 6a50f20bf1cde0e080f766ede5df147a9ea11a7b..e065b695200da4c48f90974a89517c3c8b1a7903 100644 (file)
@@ -72,7 +72,7 @@
 #define MAX_THREADS            32
 #define MAX_TEST_SIZE          SZ_1M
 #define MAX_SRCS               32
-#define DMA_OUT_RESOURCE_TO    50
+#define DMA_OUT_RESOURCE_TO    msecs_to_jiffies(50)
 #define DMA_RETRIES            20
 #define SZ_4G                  (1ULL << 32)
 #define MAX_SEG_ORDER          20 /* no larger than 1M for kmalloc buffer */