Commit f8da8634 authored by Dmitry Chagin's avatar Dmitry Chagin
Browse files

linux(4): Implement __vdso_time

PR:		240769
MFC after:	3 days

(cherry picked from commit 42317e64)
parent 00c933e9
......@@ -372,7 +372,14 @@ __vdso_getcpu(uint32_t *cpu, uint32_t *node, void *cache)
int
__vdso_time(long *tm)
{
struct timeval tv;
int error;
return (__vdso_time_fallback(tm));
error = freebsd_gettimeofday(&tv, NULL);
if (error != 0)
return (__vdso_time_fallback(tm));
if (tm != NULL)
*tm = tv.tv_sec;
return (tv.tv_sec);
}
#endif
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