svn commit: r322154 - stable/9/sys/ofed/drivers/infiniband/core

Hans Petter Selasky hselasky at FreeBSD.org
Mon Aug 7 12:56:05 UTC 2017


Author: hselasky
Date: Mon Aug  7 12:56:03 2017
New Revision: 322154
URL: https://svnweb.freebsd.org/changeset/base/322154

Log:
  MFC r321985:
  Ticks are 32-bit in FreeBSD.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/9/sys/ofed/drivers/infiniband/core/addr.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ofed/drivers/infiniband/core/addr.c
==============================================================================
--- stable/9/sys/ofed/drivers/infiniband/core/addr.c	Mon Aug  7 12:53:10 2017	(r322153)
+++ stable/9/sys/ofed/drivers/infiniband/core/addr.c	Mon Aug  7 12:56:03 2017	(r322154)
@@ -192,10 +192,10 @@ EXPORT_SYMBOL(rdma_translate_ip);
 
 static void set_timeout(unsigned long time)
 {
-	unsigned long delay;
+	int delay;	/* under FreeBSD ticks are 32-bit */
 
 	delay = time - jiffies;
-	if ((long)delay <= 0)
+	if (delay <= 0)
 		delay = 1;
 
 	mod_delayed_work(addr_wq, &work, delay);


More information about the svn-src-stable-9 mailing list