diff mbox series

[RFC,10/10] y2038: x86: Fix __lll_clocklock_elision to support 64 bit time

Message ID 20200707150827.20899-11-lukma@denx.de
State Dropped
Delegated to: Lukasz Majewski
Headers show
Series y2038: nptl: futex: Provide support for futex_time64 | expand

Commit Message

Lukasz Majewski July 7, 2020, 3:08 p.m. UTC
Adjust x86 specific code to use 64 bit struct __timespec64.
 sysdeps/unix/sysv/linux/x86/elision-timed.c | 2 +-
 sysdeps/unix/sysv/linux/x86/lowlevellock.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/sysdeps/unix/sysv/linux/x86/elision-timed.c b/sysdeps/unix/sysv/linux/x86/elision-timed.c
index 87e5c788c6..ac4d5f7858 100644
--- a/sysdeps/unix/sysv/linux/x86/elision-timed.c
+++ b/sysdeps/unix/sysv/linux/x86/elision-timed.c
@@ -20,7 +20,7 @@ 
 #include <elision-conf.h>
 #include "lowlevellock.h"
 #define __lll_lock_elision __lll_clocklock_elision
-#define EXTRAARG clockid_t clockid, const struct timespec *t,
+#define EXTRAARG clockid_t clockid, const struct __timespec64 *t,
 #undef LLL_LOCK
 #define LLL_LOCK(a, b) lll_clocklock (a, clockid, t, b)
 #include "elision-lock.c"
diff --git a/sysdeps/unix/sysv/linux/x86/lowlevellock.h b/sysdeps/unix/sysv/linux/x86/lowlevellock.h
index 27d62c9301..d0ea71b105 100644
--- a/sysdeps/unix/sysv/linux/x86/lowlevellock.h
+++ b/sysdeps/unix/sysv/linux/x86/lowlevellock.h
@@ -84,7 +84,7 @@  __lll_cas_lock (int *futex)
 extern int __lll_clocklock_elision (int *futex, short *adapt_count,
                                     clockid_t clockid,
-				    const struct timespec *timeout,
+				    const struct __timespec64 *timeout,
 				    int private) attribute_hidden;
 #define lll_clocklock_elision(futex, adapt_count, clockid, timeout, private) \