]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove __ASSUME_GETCPU_SYSCALL.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 8 May 2017 14:36:42 +0000 (14:36 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 8 May 2017 14:36:42 +0000 (14:36 +0000)
This patch removes the definition of __ASSUME_GETCPU_SYSCALL.  In fact
this macro is unused, probably since:

commit dd26c44403582fdf10d663170f947dfe4b3207a0
Author: Adhemerval Zanella <adhemerval.zanella@linaro.com>
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.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/kernel-features.h

index e47da2a7c0e4d4b9a97d4e6ec05e099c83b8a860..7386ce96dfd522d3f32cc9c39e345acc3acca7b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
+       (__ASSUME_GETCPU_SYSCALL): Remove macro.
+
 2017-05-08  Florian Weimer  <fweimer@redhat.com>
 
        Prevent multiple deletion of temporary files.
index ea892b1121c326c31199c35bcdb6862dced5e16a..115e34c09011e37f61c60eeb0d934d4d24e37c4d 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-/* 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__