Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9019 libcfs: remove the remaining cfs_time wrappers
[fs/lustre-release.git]
/
lnet
/
klnds
/
gnilnd
/
gnilnd.h
diff --git
a/lnet/klnds/gnilnd/gnilnd.h
b/lnet/klnds/gnilnd/gnilnd.h
index
4a05d98
..
b511c9f
100644
(file)
--- a/
lnet/klnds/gnilnd/gnilnd.h
+++ b/
lnet/klnds/gnilnd/gnilnd.h
@@
-66,6
+66,11
@@
#include <gni_pub.h>
#include "gnilnd_version.h"
+static inline time_t cfs_duration_sec(long duration_jiffies)
+{
+ return jiffies_to_msecs(duration_jiffies) / MSEC_PER_SEC;
+}
+
#ifdef CONFIG_SLAB
#define GNILND_MBOX_SIZE KMALLOC_MAX_SIZE
#else