From: Joseph Myers Date: Mon, 8 May 2017 14:36:42 +0000 (+0000) Subject: Remove __ASSUME_GETCPU_SYSCALL. X-Git-Tag: glibc-2.26~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1278ed2c645cc31fc5a71febf309bbec9a9d9f90;p=thirdparty%2Fglibc.git Remove __ASSUME_GETCPU_SYSCALL. This patch removes the definition of __ASSUME_GETCPU_SYSCALL. In fact this macro is unused, probably since: commit dd26c44403582fdf10d663170f947dfe4b3207a0 Author: Adhemerval Zanella Date: Wed Apr 22 14:21:39 2015 -0300 Consolidate sched_getcpu so it could have been removed even without the move to 3.2 as minimum kernel version on x86_64. Tested for x86_64. * sysdeps/unix/sysv/linux/x86_64/kernel-features.h (__ASSUME_GETCPU_SYSCALL): Remove macro. --- diff --git a/ChangeLog b/ChangeLog index e47da2a7c0e..7386ce96dfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-05-08 Joseph Myers + + * sysdeps/unix/sysv/linux/x86_64/kernel-features.h + (__ASSUME_GETCPU_SYSCALL): Remove macro. + 2017-05-08 Florian Weimer Prevent multiple deletion of temporary files. diff --git a/sysdeps/unix/sysv/linux/x86_64/kernel-features.h b/sysdeps/unix/sysv/linux/x86_64/kernel-features.h index ea892b1121c..115e34c0901 100644 --- a/sysdeps/unix/sysv/linux/x86_64/kernel-features.h +++ b/sysdeps/unix/sysv/linux/x86_64/kernel-features.h @@ -17,11 +17,6 @@ License along with the GNU C Library; if not, see . */ -/* getcpu is a syscall for x86-64 since 3.1. */ -#if __LINUX_KERNEL_VERSION >= 0x030100 -# define __ASSUME_GETCPU_SYSCALL 1 -#endif - /* Define that x32 is a ILP32 ABI to set the correct interface to pass 64-bits values through syscalls. */ #ifdef __ILP32__