xref: /openbmc/linux/arch/arm64/kernel/vdso32/vgettimeofday.c (revision ead5d1f4d877e92c051e1a1ade623d0d30e71619)
1*a7f71a2cSVincenzo Frascino // SPDX-License-Identifier: GPL-2.0
2*a7f71a2cSVincenzo Frascino /*
3*a7f71a2cSVincenzo Frascino  * ARM64 compat userspace implementations of gettimeofday() and similar.
4*a7f71a2cSVincenzo Frascino  *
5*a7f71a2cSVincenzo Frascino  * Copyright (C) 2018 ARM Limited
6*a7f71a2cSVincenzo Frascino  *
7*a7f71a2cSVincenzo Frascino  */
8*a7f71a2cSVincenzo Frascino 
__vdso_clock_gettime(clockid_t clock,struct old_timespec32 * ts)9*a7f71a2cSVincenzo Frascino int __vdso_clock_gettime(clockid_t clock,
10*a7f71a2cSVincenzo Frascino 			 struct old_timespec32 *ts)
11*a7f71a2cSVincenzo Frascino {
12*a7f71a2cSVincenzo Frascino 	return __cvdso_clock_gettime32(clock, ts);
13*a7f71a2cSVincenzo Frascino }
14*a7f71a2cSVincenzo Frascino 
__vdso_clock_gettime64(clockid_t clock,struct __kernel_timespec * ts)15*a7f71a2cSVincenzo Frascino int __vdso_clock_gettime64(clockid_t clock,
16*a7f71a2cSVincenzo Frascino 			   struct __kernel_timespec *ts)
17*a7f71a2cSVincenzo Frascino {
18*a7f71a2cSVincenzo Frascino 	return __cvdso_clock_gettime(clock, ts);
19*a7f71a2cSVincenzo Frascino }
20*a7f71a2cSVincenzo Frascino 
__vdso_gettimeofday(struct __kernel_old_timeval * tv,struct timezone * tz)21*a7f71a2cSVincenzo Frascino int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
22*a7f71a2cSVincenzo Frascino 			struct timezone *tz)
23*a7f71a2cSVincenzo Frascino {
24*a7f71a2cSVincenzo Frascino 	return __cvdso_gettimeofday(tv, tz);
25*a7f71a2cSVincenzo Frascino }
26*a7f71a2cSVincenzo Frascino 
__vdso_clock_getres(clockid_t clock_id,struct old_timespec32 * res)27*a7f71a2cSVincenzo Frascino int __vdso_clock_getres(clockid_t clock_id,
28*a7f71a2cSVincenzo Frascino 			struct old_timespec32 *res)
29*a7f71a2cSVincenzo Frascino {
30*a7f71a2cSVincenzo Frascino 	return __cvdso_clock_getres_time32(clock_id, res);
31*a7f71a2cSVincenzo Frascino }
32*a7f71a2cSVincenzo Frascino 
33*a7f71a2cSVincenzo Frascino /* Avoid unresolved references emitted by GCC */
34*a7f71a2cSVincenzo Frascino 
__aeabi_unwind_cpp_pr0(void)35*a7f71a2cSVincenzo Frascino void __aeabi_unwind_cpp_pr0(void)
36*a7f71a2cSVincenzo Frascino {
37*a7f71a2cSVincenzo Frascino }
38*a7f71a2cSVincenzo Frascino 
__aeabi_unwind_cpp_pr1(void)39*a7f71a2cSVincenzo Frascino void __aeabi_unwind_cpp_pr1(void)
40*a7f71a2cSVincenzo Frascino {
41*a7f71a2cSVincenzo Frascino }
42*a7f71a2cSVincenzo Frascino 
__aeabi_unwind_cpp_pr2(void)43*a7f71a2cSVincenzo Frascino void __aeabi_unwind_cpp_pr2(void)
44*a7f71a2cSVincenzo Frascino {
45*a7f71a2cSVincenzo Frascino }
46