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