diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2016-08-22 12:51:35 -0400 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-11-13 16:48:29 -0500 |
commit | c0a88032ef8e6814d4dd84551e5f333c1de639b3 (patch) | |
tree | 0c639ad65368e7f4f647b2bbcb7a1334a139ec98 | |
parent | 49b89de41f8d97eb13a60c1865ed61fbebed0d15 (diff) |
ntb_transport: make DMA_OUT_RESOURCE_TO HZ independent
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>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
-rw-r--r-- | drivers/ntb/ntb_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 8601c10acf74..4eb8adb34508 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c | |||
@@ -257,7 +257,7 @@ enum { | |||
257 | #define NTB_QP_DEF_NUM_ENTRIES 100 | 257 | #define NTB_QP_DEF_NUM_ENTRIES 100 |
258 | #define NTB_LINK_DOWN_TIMEOUT 10 | 258 | #define NTB_LINK_DOWN_TIMEOUT 10 |
259 | #define DMA_RETRIES 20 | 259 | #define DMA_RETRIES 20 |
260 | #define DMA_OUT_RESOURCE_TO 50 | 260 | #define DMA_OUT_RESOURCE_TO msecs_to_jiffies(50) |
261 | 261 | ||
262 | static void ntb_transport_rxc_db(unsigned long data); | 262 | static void ntb_transport_rxc_db(unsigned long data); |
263 | static const struct ntb_ctx_ops ntb_transport_ops; | 263 | static const struct ntb_ctx_ops ntb_transport_ops; |