1 // SPDX-License-Identifier: GPL-2.0-only 1 2 /* 3 * ARM userspace implementations of gettimeofd 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 #include <vdso/gettime.h> 12 13 int __vdso_clock_gettime(clockid_t clock, 14 struct old_timespec32 15 { 16 return __cvdso_clock_gettime32(clock, 17 } 18 19 int __vdso_clock_gettime64(clockid_t clock, 20 struct __kernel_tim 21 { 22 return __cvdso_clock_gettime(clock, ts 23 } 24 25 int __vdso_gettimeofday(struct __kernel_old_ti 26 struct timezone *tz) 27 { 28 return __cvdso_gettimeofday(tv, tz); 29 } 30 31 int __vdso_clock_getres(clockid_t clock_id, 32 struct old_timespec32 33 { 34 return __cvdso_clock_getres_time32(clo 35 } 36 37 /* Avoid unresolved references emitted by GCC 38 39 void __aeabi_unwind_cpp_pr0(void) 40 { 41 } 42 43 void __aeabi_unwind_cpp_pr1(void) 44 { 45 } 46 47 void __aeabi_unwind_cpp_pr2(void) 48 { 49 } 50
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.