1ad5d1122SVincent Chen // SPDX-License-Identifier: GPL-2.0
2ad5d1122SVincent Chen /*
3ad5d1122SVincent Chen  * Copied from arch/arm64/kernel/vdso/vgettimeofday.c
4ad5d1122SVincent Chen  *
5ad5d1122SVincent Chen  * Copyright (C) 2018 ARM Ltd.
6ad5d1122SVincent Chen  * Copyright (C) 2020 SiFive
7ad5d1122SVincent Chen  */
8ad5d1122SVincent Chen 
9ad5d1122SVincent Chen #include <linux/time.h>
10ad5d1122SVincent Chen #include <linux/types.h>
11ad5d1122SVincent Chen 
12e93b327dSVincent Chen extern
13e93b327dSVincent Chen int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
__vdso_clock_gettime(clockid_t clock,struct __kernel_timespec * ts)14ad5d1122SVincent Chen int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
15ad5d1122SVincent Chen {
16ad5d1122SVincent Chen 	return __cvdso_clock_gettime(clock, ts);
17ad5d1122SVincent Chen }
18ad5d1122SVincent Chen 
19e93b327dSVincent Chen extern
20e93b327dSVincent Chen int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
__vdso_gettimeofday(struct __kernel_old_timeval * tv,struct timezone * tz)21ad5d1122SVincent Chen int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
22ad5d1122SVincent Chen {
23ad5d1122SVincent Chen 	return __cvdso_gettimeofday(tv, tz);
24ad5d1122SVincent Chen }
25ad5d1122SVincent Chen 
26e93b327dSVincent Chen extern
27e93b327dSVincent Chen int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
__vdso_clock_getres(clockid_t clock_id,struct __kernel_timespec * res)28ad5d1122SVincent Chen int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
29ad5d1122SVincent Chen {
30ad5d1122SVincent Chen 	return __cvdso_clock_getres(clock_id, res);
31ad5d1122SVincent Chen }
32