nptl: Move pthread_attr_getschedparam implementation into libc

This is part of the libpthread removal project:

  <https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html>

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2019-10-07 15:49:48 +02:00
parent 77523d5e43
commit 0caab6638e
33 changed files with 70 additions and 36 deletions

View File

@ -1,3 +1,70 @@
2019-10-07 Florian Weimer <fweimer@redhat.com>
nptl: Move pthread_attr_getschedparam implementation into libc.
* nptl/Makefile (routines): Add pthread_attr_getschedparam.
(libpthread-routines): Remove pthread_attr_getschedparam.
* nptl/Versions (libpthread GLIBC_2.0): Remove
pthread_attr_getschedparam.
* nptl/forward.c (pthread_attr_getschedparam): Remove definition.
* nptl/nptl-init.c (pthread_functions): Remove initializer for
ptr_pthread_attr_getschedparam.
* sysdeps/nptl/pthread-functions.h (struct pthread_functions):
Remove ptr_pthread_attr_getschedparam member.
* sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
Remove pthread_attr_getschedparam.
* sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
Likewise.
* sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
Likewise.
* sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
Likewise.
* sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
Likewise.
* sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
Likewise.
* sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
Likewise.
* sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
Likewise.
* sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
(GLIBC_2.4): Likewise.
* sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
(GLIBC_2.18): Likewise.
* sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
(GLIBC_2.18): Likewise.
* sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
(GLIBC_2.3): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
(GLIBC_2.17): Likewise.
* sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
(GLIBC_2.27): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
(GLIBC_2.2): Likewise.
* sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
Likewise.
* sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
(GLIBC_2.0): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
(GLIBC_2.2): Likewise.
* sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
(GLIBC_2.2.5): Likewise.
* sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
(GLIBC_2.16): Likewise.
2019-10-04 Florian Weimer <fweimer@redhat.com>
[BZ #24930]

View File

@ -33,7 +33,7 @@ routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \
thrd_equal thrd_sleep thrd_yield pthread_equal \
pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate \
pthread_attr_setdetachstate pthread_attr_getinheritsched \
pthread_attr_setinheritsched
pthread_attr_setinheritsched pthread_attr_getschedparam
shared-only-routines = forward
static-only-routines = pthread_atfork
@ -57,7 +57,7 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
pthread_getschedparam pthread_setschedparam \
pthread_setschedprio \
pthread_attr_getguardsize pthread_attr_setguardsize \
pthread_attr_getschedparam pthread_attr_setschedparam \
pthread_attr_setschedparam \
pthread_attr_getschedpolicy pthread_attr_setschedpolicy \
pthread_attr_getscope pthread_attr_setscope \
pthread_attr_getstackaddr pthread_attr_setstackaddr \

View File

@ -49,7 +49,7 @@ libpthread {
pthread_getschedparam; pthread_setschedparam;
pthread_attr_getschedparam; pthread_attr_setschedparam;
pthread_attr_setschedparam;
pthread_attr_getschedpolicy; pthread_attr_setschedpolicy;
pthread_attr_getscope; pthread_attr_setscope;

View File

@ -56,9 +56,6 @@ name decl \
FORWARD2 (name, int, decl, params, return defretval)
FORWARD (pthread_attr_getschedparam,
(const pthread_attr_t *attr, struct sched_param *param),
(attr, param), 0)
FORWARD (pthread_attr_setschedparam,
(pthread_attr_t *attr, const struct sched_param *param),
(attr, param), 0)

View File

@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *);
#ifdef SHARED
static const struct pthread_functions pthread_functions =
{
.ptr_pthread_attr_getschedparam = __pthread_attr_getschedparam,
.ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
.ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy,
.ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy,

View File

@ -30,8 +30,6 @@ struct xid_command;
the thread functions. */
struct pthread_functions
{
int (*ptr_pthread_attr_getschedparam) (const pthread_attr_t *,
struct sched_param *);
int (*ptr_pthread_attr_setschedparam) (pthread_attr_t *,
const struct sched_param *);
int (*ptr_pthread_attr_getschedpolicy) (const pthread_attr_t *, int *);

View File

@ -72,7 +72,6 @@ GLIBC_2.17 pread F
GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getschedparam F
GLIBC_2.17 pthread_attr_getschedpolicy F
GLIBC_2.17 pthread_attr_getscope F
GLIBC_2.17 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -106,7 +106,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedparam F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F

View File

@ -106,7 +106,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedparam F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F

View File

@ -80,7 +80,6 @@ GLIBC_2.29 pread F
GLIBC_2.29 pread64 F
GLIBC_2.29 pthread_attr_getaffinity_np F
GLIBC_2.29 pthread_attr_getguardsize F
GLIBC_2.29 pthread_attr_getschedparam F
GLIBC_2.29 pthread_attr_getschedpolicy F
GLIBC_2.29 pthread_attr_getscope F
GLIBC_2.29 pthread_attr_getstack F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -106,7 +106,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedparam F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -72,7 +72,6 @@ GLIBC_2.18 pread F
GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getschedparam F
GLIBC_2.18 pthread_attr_getschedpolicy F
GLIBC_2.18 pthread_attr_getscope F
GLIBC_2.18 pthread_attr_getstack F

View File

@ -72,7 +72,6 @@ GLIBC_2.18 pread F
GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getschedparam F
GLIBC_2.18 pthread_attr_getschedpolicy F
GLIBC_2.18 pthread_attr_getscope F
GLIBC_2.18 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -72,7 +72,6 @@ GLIBC_2.21 pread F
GLIBC_2.21 pread64 F
GLIBC_2.21 pthread_attr_getaffinity_np F
GLIBC_2.21 pthread_attr_getguardsize F
GLIBC_2.21 pthread_attr_getschedparam F
GLIBC_2.21 pthread_attr_getschedpolicy F
GLIBC_2.21 pthread_attr_getscope F
GLIBC_2.21 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -94,7 +94,6 @@ GLIBC_2.3 pause F
GLIBC_2.3 pread F
GLIBC_2.3 pread64 F
GLIBC_2.3 pthread_attr_getguardsize F
GLIBC_2.3 pthread_attr_getschedparam F
GLIBC_2.3 pthread_attr_getschedpolicy F
GLIBC_2.3 pthread_attr_getscope F
GLIBC_2.3 pthread_attr_getstack F

View File

@ -72,7 +72,6 @@ GLIBC_2.17 pread F
GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getschedparam F
GLIBC_2.17 pthread_attr_getschedpolicy F
GLIBC_2.17 pthread_attr_getscope F
GLIBC_2.17 pthread_attr_getstack F

View File

@ -69,7 +69,6 @@ GLIBC_2.27 pread F
GLIBC_2.27 pread64 F
GLIBC_2.27 pthread_attr_getaffinity_np F
GLIBC_2.27 pthread_attr_getguardsize F
GLIBC_2.27 pthread_attr_getschedparam F
GLIBC_2.27 pthread_attr_getschedpolicy F
GLIBC_2.27 pthread_attr_getscope F
GLIBC_2.27 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -75,7 +75,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -46,7 +46,6 @@ GLIBC_2.0 nanosleep F
GLIBC_2.0 open F
GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedparam F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedparam F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedparam F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F

View File

@ -73,7 +73,6 @@ GLIBC_2.2.5 pread F
GLIBC_2.2.5 pread64 F
GLIBC_2.2.5 pthread_atfork F
GLIBC_2.2.5 pthread_attr_getguardsize F
GLIBC_2.2.5 pthread_attr_getschedparam F
GLIBC_2.2.5 pthread_attr_getschedpolicy F
GLIBC_2.2.5 pthread_attr_getscope F
GLIBC_2.2.5 pthread_attr_getstack F

View File

@ -72,7 +72,6 @@ GLIBC_2.16 pread F
GLIBC_2.16 pread64 F
GLIBC_2.16 pthread_attr_getaffinity_np F
GLIBC_2.16 pthread_attr_getguardsize F
GLIBC_2.16 pthread_attr_getschedparam F
GLIBC_2.16 pthread_attr_getschedpolicy F
GLIBC_2.16 pthread_attr_getscope F
GLIBC_2.16 pthread_attr_getstack F