Skip to content

Commit bec06cd

Browse files
t-8chThomas Gleixner
authored andcommitted
MIPS: vdso: Provide getres_time64() for 32-bit ABIs
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
1 parent f10c2e7 commit bec06cd

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

arch/mips/vdso/vdso.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ VERSION
103103
__vdso_clock_getres;
104104
#if _MIPS_SIM != _MIPS_SIM_ABI64
105105
__vdso_clock_gettime64;
106+
__vdso_clock_getres_time64;
106107
#endif
107108
#endif
108109
local: *;

arch/mips/vdso/vgettimeofday.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ int __vdso_clock_gettime64(clockid_t clock,
4646
return __cvdso_clock_gettime(clock, ts);
4747
}
4848

49+
int __vdso_clock_getres_time64(clockid_t clock, struct __kernel_timespec *ts)
50+
{
51+
return __cvdso_clock_getres(clock, ts);
52+
}
53+
4954
#else
5055

5156
int __vdso_clock_gettime(clockid_t clock,

0 commit comments

Comments
 (0)