xref: /openbmc/linux/arch/arm/vdso/vgettimeofday.c (revision 20e2fc42)
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 
10 int __vdso_clock_gettime(clockid_t clock,
11 			 struct old_timespec32 *ts)
12 {
13 	return __cvdso_clock_gettime32(clock, ts);
14 }
15 
16 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
17 			struct timezone *tz)
18 {
19 	return __cvdso_gettimeofday(tv, tz);
20 }
21 
22 /* Avoid unresolved references emitted by GCC */
23 
24 void __aeabi_unwind_cpp_pr0(void)
25 {
26 }
27 
28 void __aeabi_unwind_cpp_pr1(void)
29 {
30 }
31 
32 void __aeabi_unwind_cpp_pr2(void)
33 {
34 }
35