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.

powerpc/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>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Link: https://patch.msgid.link/20260114-vdso-powerpc-align-v1-1-acf09373d568@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
759a1f97 10a62a06

+21
+2
arch/powerpc/include/asm/vdso/gettimeofday.h
··· 135 135 const struct vdso_time_data *vd); 136 136 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res, 137 137 const struct vdso_time_data *vd); 138 + int __c_kernel_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res, 139 + const struct vdso_time_data *vd); 138 140 #endif 139 141 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz, 140 142 const struct vdso_time_data *vd);
+12
arch/powerpc/kernel/vdso/gettimeofday.S
··· 103 103 cvdso_call __c_kernel_clock_getres 104 104 V_FUNCTION_END(__kernel_clock_getres) 105 105 106 + /* 107 + * Exact prototype of clock_getres_time64() 108 + * 109 + * int __kernel_clock_getres(clockid_t clock_id, struct __timespec64 *res); 110 + * 111 + */ 112 + #ifndef __powerpc64__ 113 + V_FUNCTION_BEGIN(__kernel_clock_getres_time64) 114 + cvdso_call __c_kernel_clock_getres_time64 115 + V_FUNCTION_END(__kernel_clock_getres_time64) 116 + #endif 117 + 106 118 107 119 /* 108 120 * Exact prototype of time()
+1
arch/powerpc/kernel/vdso/vdso32.lds.S
··· 124 124 __kernel_clock_gettime; 125 125 __kernel_clock_gettime64; 126 126 __kernel_clock_getres; 127 + __kernel_clock_getres_time64; 127 128 __kernel_time; 128 129 __kernel_get_tbfreq; 129 130 __kernel_sync_dicache;
+6
arch/powerpc/kernel/vdso/vgettimeofday.c
··· 35 35 { 36 36 return __cvdso_clock_getres_time32_data(vd, clock_id, res); 37 37 } 38 + 39 + int __c_kernel_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res, 40 + const struct vdso_time_data *vd) 41 + { 42 + return __cvdso_clock_getres_data(vd, clock_id, res); 43 + } 38 44 #endif 39 45 40 46 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,