]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: 8932/1: Add clock_gettime64 entry point
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Mon, 4 Nov 2019 11:04:41 +0000 (12:04 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Nov 2019 22:21:15 +0000 (22:21 +0000)
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 arm specific vDSO library accordingly with what it has
been done for the kernel syscall exposing the clock_gettime64 entry
point.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/vdso/vdso.lds.S
arch/arm/vdso/vgettimeofday.c

index 38cb8b0aa3b94b86ea767597df7e4115b9a93711..165d1d2eb76b3cea9b054ffa8906afdffa0eae57 100644 (file)
@@ -72,6 +72,7 @@ VERSION
                __vdso_clock_gettime;
                __vdso_gettimeofday;
                __vdso_clock_getres;
+               __vdso_clock_gettime64;
        local: *;
        };
 }
index f6da91f9ccc76ec1a4f17eb89110c00fba6a864e..1976c6f325a40117105419251976971e90eda268 100644 (file)
@@ -13,6 +13,12 @@ int __vdso_clock_gettime(clockid_t clock,
        return __cvdso_clock_gettime32(clock, ts);
 }
 
+int __vdso_clock_gettime64(clockid_t clock,
+                          struct __kernel_timespec *ts)
+{
+       return __cvdso_clock_gettime(clock, ts);
+}
+
 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
                        struct timezone *tz)
 {