Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: vdso32: Provide clock_getres_time64()

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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
f10c2e72 1149dcdf

+6
+1
arch/arm64/kernel/vdso32/vdso.lds.S
··· 86 86 __vdso_gettimeofday; 87 87 __vdso_clock_getres; 88 88 __vdso_clock_gettime64; 89 + __vdso_clock_getres_time64; 89 90 local: *; 90 91 }; 91 92 }
+5
arch/arm64/kernel/vdso32/vgettimeofday.c
··· 32 32 return __cvdso_clock_getres_time32(clock_id, res); 33 33 } 34 34 35 + int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res) 36 + { 37 + return __cvdso_clock_getres(clock_id, res); 38 + } 39 + 35 40 /* Avoid unresolved references emitted by GCC */ 36 41 37 42 void __aeabi_unwind_cpp_pr0(void)