Skip to content

Commit b205656

Browse files
t-8chThomas Gleixner
authored andcommitted
vdso: Add prototype for __vdso_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. The generic vDSO library already provides nearly all necessary building blocks for architectures to provide this function. Only a prototype is missing. Add the prototype to the generic header so architectures can start providing this function. Suggested-by: Arnd Bergmann <arnd@arndb.de> 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-1-97ea7a06a543@linutronix.de
1 parent 0f61b18 commit b205656

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/vdso/gettime.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
2020
__kernel_old_time_t __vdso_time(__kernel_old_time_t *t);
2121
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
2222
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
23+
int __vdso_clock_getres_time64(clockid_t clock, struct __kernel_timespec *ts);
2324

2425
#endif

0 commit comments

Comments
 (0)