summaryrefslogtreecommitdiff
path: root/arch/mips/vdso/vgettimeofday.c
diff options
context:
space:
mode:
authorVincenzo Frascino <vincenzo.frascino@arm.com>2019-06-21 12:52:48 +0300
committerPaul Burton <paul.burton@mips.com>2019-07-26 07:45:52 +0300
commit1f66c45db3302386ca3bb3b5ed05248434237fc9 (patch)
tree899d9c28f0be4f3e97d1ed6c65d9d313bbe93c43 /arch/mips/vdso/vgettimeofday.c
parentabed3d826f2fb723c61b1251720348a42357c4e5 (diff)
downloadlinux-1f66c45db3302386ca3bb3b5ed05248434237fc9.tar.xz
mips: Add clock_gettime64 entry point
With the release of Linux 5.1 has been added a new syscall, clock_gettime64, that provided a 64 bit time value for a specified clock_ID to make the kernel Y2038 safe on 32 bit architectures. Update the mips32 specific vDSO library accordingly with what it has been done for the kernel syscall exposing the clock_gettime64 entry point. Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Burton <paul.burton@mips.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'arch/mips/vdso/vgettimeofday.c')
-rw-r--r--arch/mips/vdso/vgettimeofday.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/vdso/vgettimeofday.c b/arch/mips/vdso/vgettimeofday.c
index 48e1ab32204b..6ebdc37c89fc 100644
--- a/arch/mips/vdso/vgettimeofday.c
+++ b/arch/mips/vdso/vgettimeofday.c
@@ -29,6 +29,12 @@ int __vdso_clock_getres(clockid_t clock_id,
return __cvdso_clock_getres_time32(clock_id, res);
}
+int __vdso_clock_gettime64(clockid_t clock,
+ struct __kernel_timespec *ts)
+{
+ return __cvdso_clock_gettime(clock, ts);
+}
+
#else
int __vdso_clock_gettime(clockid_t clock,