1c6b99bedSHuacai Chen // SPDX-License-Identifier: GPL-2.0-or-later
2c6b99bedSHuacai Chen /*
3c6b99bedSHuacai Chen  * LoongArch userspace implementations of gettimeofday() and similar.
4c6b99bedSHuacai Chen  *
5c6b99bedSHuacai Chen  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
6c6b99bedSHuacai Chen  */
7c6b99bedSHuacai Chen #include <linux/types.h>
8c6b99bedSHuacai Chen 
9*84e76206SHuacai Chen extern
10*84e76206SHuacai Chen int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
__vdso_clock_gettime(clockid_t clock,struct __kernel_timespec * ts)11*84e76206SHuacai Chen int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
12c6b99bedSHuacai Chen {
13c6b99bedSHuacai Chen 	return __cvdso_clock_gettime(clock, ts);
14c6b99bedSHuacai Chen }
15c6b99bedSHuacai Chen 
16*84e76206SHuacai Chen extern
17*84e76206SHuacai Chen int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
__vdso_gettimeofday(struct __kernel_old_timeval * tv,struct timezone * tz)18*84e76206SHuacai Chen int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
19c6b99bedSHuacai Chen {
20c6b99bedSHuacai Chen 	return __cvdso_gettimeofday(tv, tz);
21c6b99bedSHuacai Chen }
22c6b99bedSHuacai Chen 
23*84e76206SHuacai Chen extern
24*84e76206SHuacai Chen int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
__vdso_clock_getres(clockid_t clock_id,struct __kernel_timespec * res)25*84e76206SHuacai Chen int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
26c6b99bedSHuacai Chen {
27c6b99bedSHuacai Chen 	return __cvdso_clock_getres(clock_id, res);
28c6b99bedSHuacai Chen }
29