]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: vdso32: Provide clock_getres_time64()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 23 Dec 2025 06:59:19 +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>
Acked-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-8-97ea7a06a543@linutronix.de
arch/arm64/kernel/vdso32/vdso.lds.S
arch/arm64/kernel/vdso32/vgettimeofday.c

index e02b27487ce80497663dd042357558fea201fcce..c374fb0146f34322a33faa70a4f87e8165d79912 100644 (file)
@@ -86,6 +86,7 @@ VERSION
                __vdso_gettimeofday;
                __vdso_clock_getres;
                __vdso_clock_gettime64;
+               __vdso_clock_getres_time64;
        local: *;
        };
 }
index 29b4d8f61e39c98722081563c72b19d81916f711..0c6998ebe491a3e31e53fc9a91afad21a970b284 100644 (file)
@@ -32,6 +32,11 @@ int __vdso_clock_getres(clockid_t clock_id,
        return __cvdso_clock_getres_time32(clock_id, res);
 }
 
+int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
+{
+       return __cvdso_clock_getres(clock_id, res);
+}
+
 /* Avoid unresolved references emitted by GCC */
 
 void __aeabi_unwind_cpp_pr0(void)