Commit 42317e64 authored by Dmitry Chagin's avatar Dmitry Chagin
Browse files

linux(4): Implement __vdso_time

PR:		240769
MFC after:	3 days
parent d8596171
......@@ -372,7 +372,14 @@ __vdso_getcpu(uint32_t *cpu, uint32_t *node, void *cache)
__vdso_time(long *tm)
struct timeval tv;
int error;
error = freebsd_gettimeofday(&tv, NULL);
if (error != 0)
return (__vdso_time_fallback(tm));
if (tm != NULL)
*tm = tv.tv_sec;
return (tv.tv_sec);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment