Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * ARM userspace implementations of gettimeofday() and similar.
0004  *
0005  * Copyright 2015 Mentor Graphics Corporation.
0006  */
0007 #include <linux/time.h>
0008 #include <linux/types.h>
0009 
0010 int __vdso_clock_gettime(clockid_t clock,
0011              struct old_timespec32 *ts)
0012 {
0013     return __cvdso_clock_gettime32(clock, ts);
0014 }
0015 
0016 int __vdso_clock_gettime64(clockid_t clock,
0017                struct __kernel_timespec *ts)
0018 {
0019     return __cvdso_clock_gettime(clock, ts);
0020 }
0021 
0022 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
0023             struct timezone *tz)
0024 {
0025     return __cvdso_gettimeofday(tv, tz);
0026 }
0027 
0028 int __vdso_clock_getres(clockid_t clock_id,
0029             struct old_timespec32 *res)
0030 {
0031     return __cvdso_clock_getres_time32(clock_id, res);
0032 }
0033 
0034 /* Avoid unresolved references emitted by GCC */
0035 
0036 void __aeabi_unwind_cpp_pr0(void)
0037 {
0038 }
0039 
0040 void __aeabi_unwind_cpp_pr1(void)
0041 {
0042 }
0043 
0044 void __aeabi_unwind_cpp_pr2(void)
0045 {
0046 }