about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2016-05-09 11:05:45 +0200
committerStefan Liebler <stli@linux.vnet.ibm.com>2016-05-09 11:05:45 +0200
commitb91a333ecb223a4bb104ff5a64c9ee5a194789a3 (patch)
treec69a7cbebf77b7c3736d6a30106f5c29a25aa871 /sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
parenta9558b49b3336aba143b68279af90d69e2d92479 (diff)
downloadglibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.tar.gz
glibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.tar.xz
glibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.zip
S390: Add support for vdso getcpu symbol.
This patch adds support for symbol __kernel_getcpu in vDSO,
which is available with kernel 4.5.
Now sched_getcpu is using this symbol if available in mapped vDSO
by defining macro HAVE_GETCPU_VSYSCALL. If not available at runtime,
the former syscall is used.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h b/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
index 6f390ff626..702b0b6a44 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
@@ -289,6 +289,7 @@
 #define HAVE_CLOCK_GETRES_VSYSCALL	1
 #define HAVE_CLOCK_GETTIME_VSYSCALL	1
 #define HAVE_GETTIMEOFDAY_VSYSCALL	1
+#define HAVE_GETCPU_VSYSCALL		1
 
 /* This version is for internal uses when there is no desire
    to set errno */