1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * ARM userspace implementations of gettimeofday() and similar.
4 *
5 * Copyright 2015 Mentor Graphics Corporation.
6 */
7 #include <linux/time.h>
8 #include <linux/types.h>
9 #include <asm/vdso.h>
10 #include <asm/unwind.h>
11
__vdso_clock_gettime(clockid_t clock,struct old_timespec32 * ts)12 int __vdso_clock_gettime(clockid_t clock,
13 struct old_timespec32 *ts)
14 {
15 return __cvdso_clock_gettime32(clock, ts);
16 }
17
__vdso_clock_gettime64(clockid_t clock,struct __kernel_timespec * ts)18 int __vdso_clock_gettime64(clockid_t clock,
19 struct __kernel_timespec *ts)
20 {
21 return __cvdso_clock_gettime(clock, ts);
22 }
23
__vdso_gettimeofday(struct __kernel_old_timeval * tv,struct timezone * tz)24 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
25 struct timezone *tz)
26 {
27 return __cvdso_gettimeofday(tv, tz);
28 }
29
__vdso_clock_getres(clockid_t clock_id,struct old_timespec32 * res)30 int __vdso_clock_getres(clockid_t clock_id,
31 struct old_timespec32 *res)
32 {
33 return __cvdso_clock_getres_time32(clock_id, res);
34 }
35
36 /* Avoid unresolved references emitted by GCC */
37
__aeabi_unwind_cpp_pr0(void)38 void __aeabi_unwind_cpp_pr0(void)
39 {
40 }
41
__aeabi_unwind_cpp_pr1(void)42 void __aeabi_unwind_cpp_pr1(void)
43 {
44 }
45
__aeabi_unwind_cpp_pr2(void)46 void __aeabi_unwind_cpp_pr2(void)
47 {
48 }
49