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.

x86/vdso: Provide clock_getres_time64() for x86-32

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-5-97ea7a06a543@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
21bbfd74 4e6a2312

+9
+8
arch/x86/entry/vdso/vclock_gettime.c
··· 74 74 75 75 int clock_getres(clockid_t, struct old_timespec32 *) 76 76 __attribute__((weak, alias("__vdso_clock_getres"))); 77 + 78 + int __vdso_clock_getres_time64(clockid_t clock, struct __kernel_timespec *ts) 79 + { 80 + return __cvdso_clock_getres(clock, ts); 81 + } 82 + 83 + int clock_getres_time64(clockid_t, struct __kernel_timespec *) 84 + __attribute__((weak, alias("__vdso_clock_getres_time64"))); 77 85 #endif
+1
arch/x86/entry/vdso/vdso32/vdso32.lds.S
··· 28 28 __vdso_time; 29 29 __vdso_clock_getres; 30 30 __vdso_clock_gettime64; 31 + __vdso_clock_getres_time64; 31 32 __vdso_getcpu; 32 33 }; 33 34