about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>2015-04-17 11:48:51 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-05-26 17:03:35 -0300
commit97554e4382e5d85eccf146b58f85aaad7e3d687c (patch)
treeb28561af0c0193d8877dd3ca19e277e5c80b4c4b /sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
parent6afb9c0175006c8060928537842364f83df6fc15 (diff)
downloadglibc-97554e4382e5d85eccf146b58f85aaad7e3d687c.tar.gz
glibc-97554e4382e5d85eccf146b58f85aaad7e3d687c.tar.xz
glibc-97554e4382e5d85eccf146b58f85aaad7e3d687c.zip
Consolidate gettimeofday across aarch64/s390/tile
This patch removes the architecture specific gettimeofday implementation
to use the vDSO symbol and consolidate it on a common Linux one.
Similar to clock_gettime and clock_getres vDSO implementation, each port
that supports gettimeofday through vDSO should just implement INLINE_VSYSCALL
to access the symbol and define HAVE_{GETTIME,GETRES}_VSYSCAL as 1.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h b/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
index a773a2856d..c768df1743 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
@@ -281,6 +281,7 @@
 /* List of system calls which are supported as vsyscalls.  */
 #define HAVE_CLOCK_GETRES_VSYSCALL	1
 #define HAVE_CLOCK_GETTIME_VSYSCALL	1
+#define HAVE_GETTIMEOFDAY_VSYSCALL	1
 
 /* This version is for internal uses when there is no desire
    to set errno */