From: Nicholas Mc Guire Date: Mon, 22 Aug 2016 16:51:35 +0000 (+0200) Subject: ntb_transport: make DMA_OUT_RESOURCE_TO HZ independent X-Git-Tag: v4.9.8~964^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0a88032ef8e6814d4dd84551e5f333c1de639b3;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 8601c10..4eb8adb 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -257,7 +257,7 @@ enum { #define NTB_QP_DEF_NUM_ENTRIES 100 #define NTB_LINK_DOWN_TIMEOUT 10 #define DMA_RETRIES 20 -#define DMA_OUT_RESOURCE_TO 50 +#define DMA_OUT_RESOURCE_TO msecs_to_jiffies(50) static void ntb_transport_rxc_db(unsigned long data); static const struct ntb_ctx_ops ntb_transport_ops;