diff --git a/lnet/include/libcfs/darwin/darwin-time.h b/lnet/include/libcfs/darwin/darwin-time.h
index 43ad274630814b9770f4083f409f14daedec90e3..35862a63d60f75855c08ac4392d61c8cb2800e81 100644
--- a/lnet/include/libcfs/darwin/darwin-time.h
+++ b/lnet/include/libcfs/darwin/darwin-time.h
@@ -213,6 +213,7 @@ static inline void cfs_duration_nsec(cfs_duration_t d, struct timespec *s)
 #define cfs_time_add_64     cfs_time_add
 #define cfs_time_shift_64   cfs_time_shift
 #define cfs_time_before_64  cfs_time_before
+#define cfs_time_beforeq_64 cfs_time_beforeq
 
 /* 
  * One jiffy (in nanoseconds)
diff --git a/lnet/include/libcfs/linux/linux-time.h b/lnet/include/libcfs/linux/linux-time.h
index 1b31dd87bd8ddb1b2128942bbf8e8e517c50dc19..626defd4707ac1df8f0572fd7b7fcd435298a68b 100644
--- a/lnet/include/libcfs/linux/linux-time.h
+++ b/lnet/include/libcfs/linux/linux-time.h
@@ -281,12 +281,17 @@ static inline int cfs_time_before_64(__u64 t1, __u64 t2)
         return (__s64)t2 - (__s64)t1 > 0;
 }
 
+static inline int cfs_time_beforeq_64(__u64 t1, __u64 t2)
+{
+        return (__s64)t2 - (__s64)t1 >= 0;
+}
+
 #else
 #define cfs_time_current_64 cfs_time_current
 #define cfs_time_add_64     cfs_time_add
 #define cfs_time_shift_64   cfs_time_shift
 #define cfs_time_before_64  cfs_time_before
-
+#define cfs_time_beforeq_64 cfs_time_beforeq
 #endif
 
 /*
diff --git a/lnet/include/libcfs/user-time.h b/lnet/include/libcfs/user-time.h
index 86cbc2ded2f4861939e899df409e6de7756a3c04..3fb801da9d3d5c68716abc2633eeaf32a39482f0 100644
--- a/lnet/include/libcfs/user-time.h
+++ b/lnet/include/libcfs/user-time.h
@@ -181,6 +181,7 @@ static inline cfs_duration_t cfs_time_sub(cfs_time_t t1, cfs_time_t t2)
 #define cfs_time_add_64     cfs_time_add
 #define cfs_time_shift_64   cfs_time_shift
 #define cfs_time_before_64  cfs_time_before
+#define cfs_time_beforeq_64 cfs_time_beforeq
 
 #define CFS_TIME_T              "%lu"
 #define CFS_DURATION_T          "%ld"
diff --git a/lnet/include/libcfs/winnt/winnt-time.h b/lnet/include/libcfs/winnt/winnt-time.h
index d31f854b9efd5e9a8186b1b956c881ddc308a949..a7a570cf4083f377867366b0678a33c717671241 100644
--- a/lnet/include/libcfs/winnt/winnt-time.h
+++ b/lnet/include/libcfs/winnt/winnt-time.h
@@ -221,6 +221,7 @@ static inline void cfs_fs_time_nsec(cfs_fs_time_t *t, struct timespec *s)
 #define cfs_time_add_64     cfs_time_add
 #define cfs_time_shift_64   cfs_time_shift
 #define cfs_time_before_64  cfs_time_before
+#define cfs_time_beforeq_64 cfs_time_beforeq
 
 /*
  * One jiffy