vgettimeofday.c 883 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. int __vdso_clock_gettime(clockid_t clock,
  10. struct old_timespec32 *ts)
  11. {
  12. return __cvdso_clock_gettime32(clock, ts);
  13. }
  14. int __vdso_clock_gettime64(clockid_t clock,
  15. struct __kernel_timespec *ts)
  16. {
  17. return __cvdso_clock_gettime(clock, ts);
  18. }
  19. int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
  20. struct timezone *tz)
  21. {
  22. return __cvdso_gettimeofday(tv, tz);
  23. }
  24. int __vdso_clock_getres(clockid_t clock_id,
  25. struct old_timespec32 *res)
  26. {
  27. return __cvdso_clock_getres_time32(clock_id, res);
  28. }
  29. /* Avoid unresolved references emitted by GCC */
  30. void __aeabi_unwind_cpp_pr0(void)
  31. {
  32. }
  33. void __aeabi_unwind_cpp_pr1(void)
  34. {
  35. }
  36. void __aeabi_unwind_cpp_pr2(void)
  37. {
  38. }