summaryrefslogtreecommitdiff
path: root/arch/arm/vdso
diff options
context:
space:
mode:
authorVincenzo Frascino <vincenzo.frascino@arm.com>2019-11-04 14:04:41 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2019-11-16 01:21:15 +0300
commit74d06efb9c2f99b496eb118b1e941dc4c6404e93 (patch)
treec9da676a2bf42d8a47ca1ac70ae85fe2c35c2c22 /arch/arm/vdso
parent052e76a31b4a64d7678e270d498e1bc36c342f88 (diff)
downloadlinux-74d06efb9c2f99b496eb118b1e941dc4c6404e93.tar.xz
ARM: 8932/1: 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 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>
Diffstat (limited to 'arch/arm/vdso')
-rw-r--r--arch/arm/vdso/vdso.lds.S1
-rw-r--r--arch/arm/vdso/vgettimeofday.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/vdso/vdso.lds.S b/arch/arm/vdso/vdso.lds.S
index 38cb8b0aa3b9..165d1d2eb76b 100644
--- a/arch/arm/vdso/vdso.lds.S
+++ b/arch/arm/vdso/vdso.lds.S
@@ -72,6 +72,7 @@ VERSION
__vdso_clock_gettime;
__vdso_gettimeofday;
__vdso_clock_getres;
+ __vdso_clock_gettime64;
local: *;
};
}
diff --git a/arch/arm/vdso/vgettimeofday.c b/arch/arm/vdso/vgettimeofday.c
index f6da91f9ccc7..1976c6f325a4 100644
--- a/arch/arm/vdso/vgettimeofday.c
+++ b/arch/arm/vdso/vgettimeofday.c
@@ -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)
{