2019-05-30 07:57:54 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2015-03-26 02:14:22 +08:00
|
|
|
/*
|
2019-11-04 18:59:59 +08:00
|
|
|
* ARM userspace implementations of gettimeofday() and similar.
|
|
|
|
*
|
2015-03-26 02:14:22 +08:00
|
|
|
* Copyright 2015 Mentor Graphics Corporation.
|
|
|
|
*/
|
|
|
|
#include <linux/time.h>
|
2019-11-04 18:59:59 +08:00
|
|
|
#include <linux/types.h>
|
2015-03-26 02:14:22 +08:00
|
|
|
|
2019-11-04 18:59:59 +08:00
|
|
|
int __vdso_clock_gettime(clockid_t clock,
|
|
|
|
struct old_timespec32 *ts)
|
2015-03-26 02:14:22 +08:00
|
|
|
{
|
2019-11-04 18:59:59 +08:00
|
|
|
return __cvdso_clock_gettime32(clock, ts);
|
2015-03-26 02:14:22 +08:00
|
|
|
}
|
|
|
|
|
2019-11-04 19:04:41 +08:00
|
|
|
int __vdso_clock_gettime64(clockid_t clock,
|
|
|
|
struct __kernel_timespec *ts)
|
|
|
|
{
|
|
|
|
return __cvdso_clock_gettime(clock, ts);
|
|
|
|
}
|
|
|
|
|
2019-11-04 18:59:59 +08:00
|
|
|
int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
|
|
|
|
struct timezone *tz)
|
2015-03-26 02:14:22 +08:00
|
|
|
{
|
2019-11-04 18:59:59 +08:00
|
|
|
return __cvdso_gettimeofday(tv, tz);
|
2015-03-26 02:14:22 +08:00
|
|
|
}
|
|
|
|
|
2019-11-04 19:02:19 +08:00
|
|
|
int __vdso_clock_getres(clockid_t clock_id,
|
|
|
|
struct old_timespec32 *res)
|
|
|
|
{
|
|
|
|
return __cvdso_clock_getres_time32(clock_id, res);
|
|
|
|
}
|
|
|
|
|
2015-03-26 02:14:22 +08:00
|
|
|
/* Avoid unresolved references emitted by GCC */
|
|
|
|
|
|
|
|
void __aeabi_unwind_cpp_pr0(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void __aeabi_unwind_cpp_pr1(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void __aeabi_unwind_cpp_pr2(void)
|
|
|
|
{
|
|
|
|
}
|