diff mbox

Remove __ASSUME_GETCPU_SYSCALL

Message ID alpine.DEB.2.20.1705081406310.25850@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers May 8, 2017, 2:06 p.m. UTC
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.

2017-05-08  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/x86_64/kernel-features.h
	(__ASSUME_GETCPU_SYSCALL): Remove macro.

Comments

Adhemerval Zanella Netto May 8, 2017, 2:29 p.m. UTC | #1
On 08/05/2017 11:06, Joseph Myers wrote:
> 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.
> 
> 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/x86_64/kernel-features.h
> 	(__ASSUME_GETCPU_SYSCALL): Remove macro.

LGTM, thanks.

> 
> diff --git a/sysdeps/unix/sysv/linux/x86_64/kernel-features.h b/sysdeps/unix/sysv/linux/x86_64/kernel-features.h
> index ea892b1..115e34c 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
>     <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__
>
Andreas Schwab May 8, 2017, 2:37 p.m. UTC | #2
On Mai 08 2017, Joseph Myers <joseph@codesourcery.com> wrote:

> 	* sysdeps/unix/sysv/linux/x86_64/kernel-features.h
> 	(__ASSUME_GETCPU_SYSCALL): Remove macro.

Ok.

Andreas.
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/x86_64/kernel-features.h b/sysdeps/unix/sysv/linux/x86_64/kernel-features.h
index ea892b1..115e34c 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
    <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__