Skip to content

Commit 74d06ef

Browse files
fvincenzoRussell King
authored andcommitted
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 <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 052e76a commit 74d06ef

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

arch/arm/vdso/vdso.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ VERSION
7272
__vdso_clock_gettime;
7373
__vdso_gettimeofday;
7474
__vdso_clock_getres;
75+
__vdso_clock_gettime64;
7576
local: *;
7677
};
7778
}

arch/arm/vdso/vgettimeofday.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ int __vdso_clock_gettime(clockid_t clock,
1313
return __cvdso_clock_gettime32(clock, ts);
1414
}
1515

16+
int __vdso_clock_gettime64(clockid_t clock,
17+
struct __kernel_timespec *ts)
18+
{
19+
return __cvdso_clock_gettime(clock, ts);
20+
}
21+
1622
int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
1723
struct timezone *tz)
1824
{

0 commit comments

Comments
 (0)