Skip to content

Commit 1149dcd

Browse files
t-8chThomas Gleixner
authored andcommitted
ARM: 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> Link: https://patch.msgid.link/20251223-vdso-compat-time32-v1-7-97ea7a06a543@linutronix.de
1 parent b9fecf0 commit 1149dcd

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

arch/arm/kernel/vdso.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static void __init patch_vdso(void *ehdr)
162162
vdso_nullpatch_one(&einfo, "__vdso_clock_gettime");
163163
vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64");
164164
vdso_nullpatch_one(&einfo, "__vdso_clock_getres");
165+
vdso_nullpatch_one(&einfo, "__vdso_clock_getres_time64");
165166
}
166167
}
167168

arch/arm/vdso/vdso.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ VERSION
7474
__vdso_gettimeofday;
7575
__vdso_clock_getres;
7676
__vdso_clock_gettime64;
77+
__vdso_clock_getres_time64;
7778
local: *;
7879
};
7980
}

arch/arm/vdso/vgettimeofday.c

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

37+
int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
38+
{
39+
return __cvdso_clock_getres(clock_id, res);
40+
}
41+
3742
/* Avoid unresolved references emitted by GCC */
3843

3944
void __aeabi_unwind_cpp_pr0(void)

0 commit comments

Comments
 (0)