aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/s390/s390-32/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-32/sysdep.h
parenta9558b49b3336aba143b68279af90d69e2d92479 (diff)
downloadglibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.zip
glibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.tar.gz
glibc-b91a333ecb223a4bb104ff5a64c9ee5a194789a3.tar.bz2
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-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 3540416..651e1ee 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
@@ -283,6 +283,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 */