aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-09-06 00:12:18 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-06 00:12:18 -0400
commitef60624956e93df1da329a48570776ed963b1916 (patch)
tree21743f4149f142ca1e4614e1f59c929573745024 /sysdeps/unix/sysv/linux/kernel-features.h
parent6585cb60ee7aafc3301c402dda12d6771dfb7fa3 (diff)
downloadglibc-ef60624956e93df1da329a48570776ed963b1916.tar
glibc-ef60624956e93df1da329a48570776ed963b1916.tar.gz
glibc-ef60624956e93df1da329a48570776ed963b1916.tar.bz2
glibc-ef60624956e93df1da329a48570776ed963b1916.zip
Prefer real syscalls instead of vsyscalls on x86-64 outside libc.so
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index d91f581a95..58f833e96a 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -546,3 +546,8 @@
#if __LINUX_KERNEL_VERSION >= 0x020627
# define __ASSUME_SENDMMSG 1
#endif
+
+/* getcpu is a syscall for x86-64 since 3.1. */
+#if defined __x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100
+# define __ASSUME_GETCPU_SYSCALL 1
+#endif