2022-05-31 18:04:12 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
/*
|
|
|
|
* LoongArch userspace implementations of gettimeofday() and similar.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
|
|
*/
|
|
|
|
#include <linux/types.h>
|
2023-11-08 20:58:36 +08:00
|
|
|
#include <vdso/gettime.h>
|
2022-05-31 18:04:12 +08:00
|
|
|
|
2022-08-25 19:34:59 +08:00
|
|
|
int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
|
2022-05-31 18:04:12 +08:00
|
|
|
{
|
|
|
|
return __cvdso_clock_gettime(clock, ts);
|
|
|
|
}
|
|
|
|
|
2022-08-25 19:34:59 +08:00
|
|
|
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
|
2022-05-31 18:04:12 +08:00
|
|
|
{
|
|
|
|
return __cvdso_gettimeofday(tv, tz);
|
|
|
|
}
|
|
|
|
|
2022-08-25 19:34:59 +08:00
|
|
|
int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
|
2022-05-31 18:04:12 +08:00
|
|
|
{
|
|
|
|
return __cvdso_clock_getres(clock_id, res);
|
|
|
|
}
|