Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / datapath / linux / compat / include / linux / jiffies.h
1 #ifndef __LINUX_JIFFIES_WRAPPER_H
2 #define __LINUX_JIFFIES_WRAPPER_H 1
3
4 #include_next <linux/jiffies.h>
5
6 #include <linux/version.h>
7
8 /* Same as above, but does so with platform independent 64bit types.
9  * These must be used when utilizing jiffies_64 (i.e. return value of
10  * get_jiffies_64() */
11
12 #ifndef time_after64
13 #define time_after64(a, b)       \
14         (typecheck(__u64, a) && \
15         typecheck(__u64, b) && \
16         ((__s64)(b) - (__s64)(a) < 0))
17 #endif
18
19 #ifndef time_before64
20 #define time_before64(a, b)      time_after64(b, a)
21 #endif
22
23 #ifndef time_after_eq64
24 #define time_after_eq64(a, b)    \
25         (typecheck(__u64, a) && \
26         typecheck(__u64, b) && \
27         ((__s64)(a) - (__s64)(b) >= 0))
28 #endif
29
30 #ifndef time_before_eq64
31 #define time_before_eq64(a, b)   time_after_eq64(b, a)
32 #endif
33
34 #endif