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.
b91a333 S390: Add support for vdso getcpu symbol.
ChangeLog | 11 +++++++++++
sysdeps/unix/sysv/linux/s390/init-first.c | 6 ++++++
sysdeps/unix/sysv/linux/s390/libc-vdso.h | 2 ++
sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h | 1 +
sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h | 1 +
5 files changed, 21 insertions(+)
Upstream: sourceware.org