X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Fapi-ni.c;h=bfc84d6e07fc249ad6e24565cc07ecff4db108db;hp=ed5eba9b6cb7219983d3f2c9477762aec60506db;hb=2dc1bb8b7a53077fce8632aabe65b2ce8048a550;hpb=0966ba77cfaa56d5455b1eda35cb2108f35272d8;ds=sidebyside diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index ed5eba9..bfc84d6 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -506,25 +506,24 @@ lnet_freelist_fini (lnet_freelist_t *fl) #endif /* LNET_USE_LIB_FREELIST */ -__u64 -lnet_create_interface_cookie (void) +__u64 lnet_create_interface_cookie (void) { - /* NB the interface cookie in wire handles guards against delayed - * replies and ACKs appearing valid after reboot. Initialisation time, - * even if it's only implemented to millisecond resolution is probably - * easily good enough. */ - struct timeval tv; - __u64 cookie; + /* NB the interface cookie in wire handles guards against delayed + * replies and ACKs appearing valid after reboot. Initialisation time, + * even if it's only implemented to millisecond resolution is probably + * easily good enough. */ + struct timeval tv; + __u64 cookie; #ifndef __KERNEL__ - int rc = gettimeofday (&tv, NULL); - LASSERT (rc == 0); + int rc = gettimeofday (&tv, NULL); + LASSERT (rc == 0); #else - cfs_gettimeofday(&tv); + do_gettimeofday(&tv); #endif - cookie = tv.tv_sec; - cookie *= 1000000; - cookie += tv.tv_usec; - return cookie; + cookie = tv.tv_sec; + cookie *= 1000000; + cookie += tv.tv_usec; + return cookie; } static char *