Make sure jiffies value is cast to an integer in the LinuxKPI before

doing millisecond conversion. Under FreeBSD jiffies are 32-bit.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
hselasky 2017-03-07 15:33:38 +00:00
parent 068f3be6db
commit 01cb21eaf8

View File

@ -40,7 +40,7 @@
#define jiffies ticks
#define jiffies_64 ticks
#define jiffies_to_msecs(x) (((int64_t)(x)) * 1000 / hz)
#define jiffies_to_msecs(x) (((int64_t)(int)(x)) * 1000 / hz)
#define MAX_JIFFY_OFFSET ((INT_MAX >> 1) - 1)