mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
For consistency with __vdso_clock_gettime64() there should also be a 64-bit variant of clock_getres(). This will allow the extension of CONFIG_COMPAT_32BIT_TIME to the vDSO and finally the removal of 32-bit time types from the kernel and UAPI. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Acked-by: Will Deacon <will@kernel.org> Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-8-97ea7a06a543@linutronix.de
53 lines
1010 B
C
53 lines
1010 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* ARM64 compat userspace implementations of gettimeofday() and similar.
|
|
*
|
|
* Copyright (C) 2018 ARM Limited
|
|
*
|
|
*/
|
|
#define BUILD_VDSO32_64
|
|
#include <vdso/gettime.h>
|
|
|
|
int __vdso_clock_gettime(clockid_t clock,
|
|
struct old_timespec32 *ts)
|
|
{
|
|
return __cvdso_clock_gettime32(clock, ts);
|
|
}
|
|
|
|
int __vdso_clock_gettime64(clockid_t clock,
|
|
struct __kernel_timespec *ts)
|
|
{
|
|
return __cvdso_clock_gettime(clock, ts);
|
|
}
|
|
|
|
int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
|
|
struct timezone *tz)
|
|
{
|
|
return __cvdso_gettimeofday(tv, tz);
|
|
}
|
|
|
|
int __vdso_clock_getres(clockid_t clock_id,
|
|
struct old_timespec32 *res)
|
|
{
|
|
return __cvdso_clock_getres_time32(clock_id, res);
|
|
}
|
|
|
|
int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
|
|
{
|
|
return __cvdso_clock_getres(clock_id, res);
|
|
}
|
|
|
|
/* Avoid unresolved references emitted by GCC */
|
|
|
|
void __aeabi_unwind_cpp_pr0(void)
|
|
{
|
|
}
|
|
|
|
void __aeabi_unwind_cpp_pr1(void)
|
|
{
|
|
}
|
|
|
|
void __aeabi_unwind_cpp_pr2(void)
|
|
{
|
|
}
|