mips: Add clock_gettime64 entry point
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Fri, 21 Jun 2019 09:52:48 +0000 (10:52 +0100)
committerPaul Burton <paul.burton@mips.com>
Fri, 26 Jul 2019 04:45:52 +0000 (21:45 -0700)
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>
arch/mips/vdso/vdso.lds.S
arch/mips/vdso/vgettimeofday.c

index ad9f2f2c0c972c1437b384efbe98403a3afec122..da4627430aba40c4a1f1e1811a871ee200d4ee8b 100644 (file)
@@ -96,6 +96,9 @@ VERSION
                __vdso_clock_gettime;
                __vdso_gettimeofday;
                __vdso_clock_getres;
+#if _MIPS_SIM != _MIPS_SIM_ABI64
+               __vdso_clock_gettime64;
+#endif
 #endif
        local: *;
        };
index 48e1ab32204ba922220ac200931af138bbc9004b..6ebdc37c89fc6a11a32314136c99a7f1a95bf7f3 100644 (file)
@@ -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,