]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: VDSO: Provide clock_getres_time64()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 23 Dec 2025 06:59:18 +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-7-97ea7a06a543@linutronix.de
arch/arm/kernel/vdso.c
arch/arm/vdso/vdso.lds.S
arch/arm/vdso/vgettimeofday.c

index 566c40f0f7c77b4f6d1d1578c39037bb5380a1e6..0108f33d6bed7bc5845138f47f36ab0432ab90eb 100644 (file)
@@ -162,6 +162,7 @@ static void __init patch_vdso(void *ehdr)
                vdso_nullpatch_one(&einfo, "__vdso_clock_gettime");
                vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64");
                vdso_nullpatch_one(&einfo, "__vdso_clock_getres");
+               vdso_nullpatch_one(&einfo, "__vdso_clock_getres_time64");
        }
 }
 
index 7c08371f440027f9a52e9fffae530d7db05b7c43..74d8d8bc8a40da7ef490ac217fb0a243c9ce5a75 100644 (file)
@@ -74,6 +74,7 @@ VERSION
                __vdso_gettimeofday;
                __vdso_clock_getres;
                __vdso_clock_gettime64;
+               __vdso_clock_getres_time64;
        local: *;
        };
 }
index 3554aa35f1ba13f06f0215284d499d8d02c7d121..f7a2f5dc2fdcbc86a31d6d4b5e3f3fa8723d037d 100644 (file)
@@ -34,6 +34,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)