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.

ARM: VDSO: 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>
Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-7-97ea7a06a543@linutronix.de

authored by

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

+7
+1
arch/arm/kernel/vdso.c
··· 162 162 vdso_nullpatch_one(&einfo, "__vdso_clock_gettime"); 163 163 vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64"); 164 164 vdso_nullpatch_one(&einfo, "__vdso_clock_getres"); 165 + vdso_nullpatch_one(&einfo, "__vdso_clock_getres_time64"); 165 166 } 166 167 } 167 168
+1
arch/arm/vdso/vdso.lds.S
··· 74 74 __vdso_gettimeofday; 75 75 __vdso_clock_getres; 76 76 __vdso_clock_gettime64; 77 + __vdso_clock_getres_time64; 77 78 local: *; 78 79 }; 79 80 }
+5
arch/arm/vdso/vgettimeofday.c
··· 34 34 return __cvdso_clock_getres_time32(clock_id, res); 35 35 } 36 36 37 + int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res) 38 + { 39 + return __cvdso_clock_getres(clock_id, res); 40 + } 41 + 37 42 /* Avoid unresolved references emitted by GCC */ 38 43 39 44 void __aeabi_unwind_cpp_pr0(void)