Skip to content

Commit f10c2e7

Browse files
t-8chThomas Gleixner
authored andcommitted
arm64: vdso32: 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> Acked-by: Will Deacon <will@kernel.org> Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-8-97ea7a06a543@linutronix.de
1 parent 1149dcd commit f10c2e7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

arch/arm64/kernel/vdso32/vdso.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ VERSION
8686
__vdso_gettimeofday;
8787
__vdso_clock_getres;
8888
__vdso_clock_gettime64;
89+
__vdso_clock_getres_time64;
8990
local: *;
9091
};
9192
}

arch/arm64/kernel/vdso32/vgettimeofday.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ int __vdso_clock_getres(clockid_t clock_id,
3232
return __cvdso_clock_getres_time32(clock_id, res);
3333
}
3434

35+
int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
36+
{
37+
return __cvdso_clock_getres(clock_id, res);
38+
}
39+
3540
/* Avoid unresolved references emitted by GCC */
3641

3742
void __aeabi_unwind_cpp_pr0(void)

0 commit comments

Comments
 (0)