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:
parent
068f3be6db
commit
01cb21eaf8
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user