]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: vdso: Provide getres_time64() for 32-bit ABIs
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 23 Dec 2025 06:59:20 +0000 (07:59 +0100)
committerThomas Gleixner <tglx@kernel.org>
Tue, 13 Jan 2026 13:42:23 +0000 (14:42 +0100)
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-9-97ea7a06a543@linutronix.de
arch/mips/vdso/vdso.lds.S
arch/mips/vdso/vgettimeofday.c

index c8bbe56d89cb095da21ac1f56d9999914defc305..5d08be3a6b85c486f27be3a28c6ef4a1336c07cf 100644 (file)
@@ -103,6 +103,7 @@ VERSION
                __vdso_clock_getres;
 #if _MIPS_SIM != _MIPS_SIM_ABI64
                __vdso_clock_gettime64;
+               __vdso_clock_getres_time64;
 #endif
 #endif
        local: *;
index 604afea3f33630772dcf7a3773635e8f8b6f1615..1d236215e8f641c2adad16a088ae7c05e322cff1 100644 (file)
@@ -46,6 +46,11 @@ int __vdso_clock_gettime64(clockid_t clock,
        return __cvdso_clock_gettime(clock, ts);
 }
 
+int __vdso_clock_getres_time64(clockid_t clock, struct __kernel_timespec *ts)
+{
+       return __cvdso_clock_getres(clock, ts);
+}
+
 #else
 
 int __vdso_clock_gettime(clockid_t clock,