nptl: Move pthread_setschedparam implementation into libc
authorFlorian Weimer <fweimer@redhat.com>
Mon, 10 Feb 2020 10:51:05 +0000 (11:51 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 20 Feb 2020 07:57:01 +0000 (08:57 +0100)
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>
32 files changed:
nptl/Makefile
nptl/Versions
nptl/forward.c
nptl/nptl-init.c
sysdeps/nptl/pthread-functions.h
sysdeps/unix/sysv/linux/aarch64/libpthread.abilist
sysdeps/unix/sysv/linux/alpha/libpthread.abilist
sysdeps/unix/sysv/linux/arm/be/libpthread.abilist
sysdeps/unix/sysv/linux/arm/le/libpthread.abilist
sysdeps/unix/sysv/linux/csky/libpthread.abilist
sysdeps/unix/sysv/linux/hppa/libpthread.abilist
sysdeps/unix/sysv/linux/i386/libpthread.abilist
sysdeps/unix/sysv/linux/ia64/libpthread.abilist
sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
sysdeps/unix/sysv/linux/nios2/libpthread.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
sysdeps/unix/sysv/linux/sh/be/libpthread.abilist
sysdeps/unix/sysv/linux/sh/le/libpthread.abilist
sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist

index 9521fac62014872dc0e8fff6a9616424680fe349..e554a3898da4558705c4ac5e188571240243557b 100644 (file)
@@ -58,6 +58,7 @@ routines = \
   pthread_equal \
   pthread_getschedparam \
   pthread_self \
+  pthread_setschedparam \
   register-atfork \
 
 shared-only-routines = forward
@@ -80,7 +81,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
                      pthread_join pthread_tryjoin pthread_timedjoin \
                      pthread_clockjoin pthread_join_common pthread_yield \
                      pthread_getconcurrency pthread_setconcurrency \
-                     pthread_setschedparam \
                      pthread_setschedprio \
                      pthread_attr_getguardsize pthread_attr_setguardsize \
                      pthread_attr_getstackaddr pthread_attr_setstackaddr \
index ccf7be396b7e5eaa23ffd30f708a9c84c06ef59c..543dddc4ee7bbabb078dc5fb0a5a2a63a18f20ff 100644 (file)
@@ -49,8 +49,6 @@ libpthread {
     pthread_create; pthread_join;
     pthread_exit; pthread_detach;
 
-    pthread_setschedparam;
-
     pthread_mutex_init; pthread_mutex_destroy;
     pthread_mutex_lock; pthread_mutex_trylock; pthread_mutex_unlock;
 
index f84f7795a28779f8a7f4dd80d44cc487101a9693..d486c9fec9d9592ec0a4bc7132607b65992dd0ed 100644 (file)
@@ -108,11 +108,6 @@ FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
 strong_alias (__pthread_exit, pthread_exit);
 
 
-FORWARD (pthread_setschedparam,
-        (pthread_t target_thread, int policy,
-         const struct sched_param *param), (target_thread, policy, param), 0)
-
-
 FORWARD (pthread_mutex_destroy, (pthread_mutex_t *mutex), (mutex), 0)
 
 FORWARD (pthread_mutex_init,
index 34a2518250319c00b4177df93a3e1d444fc4755b..95ac91df154dbc31593f1c795155e7f15b545942 100644 (file)
@@ -83,7 +83,6 @@ static const struct pthread_functions pthread_functions =
     .ptr___pthread_cond_timedwait_2_0 = __pthread_cond_timedwait_2_0,
 # endif
     .ptr___pthread_exit = __pthread_exit,
-    .ptr_pthread_setschedparam = __pthread_setschedparam,
     .ptr_pthread_mutex_destroy = __pthread_mutex_destroy,
     .ptr_pthread_mutex_init = __pthread_mutex_init,
     .ptr_pthread_mutex_lock = __pthread_mutex_lock,
index 337ef59691facf5718eebf615b09d8e5117d3d14..294b7e11192fbe17c40191bfb09e910a3d2bb332 100644 (file)
@@ -42,8 +42,6 @@ struct pthread_functions
                                           pthread_mutex_t *,
                                           const struct timespec *);
   void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
-  int (*ptr_pthread_setschedparam) (pthread_t, int,
-                                   const struct sched_param *);
   int (*ptr_pthread_mutex_destroy) (pthread_mutex_t *);
   int (*ptr_pthread_mutex_init) (pthread_mutex_t *,
                                 const pthread_mutexattr_t *);
index a0cff69954775ae65882a98e73101d168ad2735a..d65beba9583e0df4593fbe4cd7b18c8efa48b7d4 100644 (file)
@@ -154,7 +154,6 @@ GLIBC_2.17 pthread_setcancelstate F
 GLIBC_2.17 pthread_setcanceltype F
 GLIBC_2.17 pthread_setconcurrency F
 GLIBC_2.17 pthread_setname_np F
-GLIBC_2.17 pthread_setschedparam F
 GLIBC_2.17 pthread_setschedprio F
 GLIBC_2.17 pthread_setspecific F
 GLIBC_2.17 pthread_sigmask F
index bb718e40377315b912de99ee132e85ff02cf525b..ffd443422d7b1cd9dc8357f26c563b29663635e6 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index cabc278df8dafbb2e488be0e312a649f6800a924..129c64b0a7f4498d2fddea6dc4bd24993d66e372 100644 (file)
@@ -184,7 +184,6 @@ GLIBC_2.4 pthread_setaffinity_np F
 GLIBC_2.4 pthread_setcancelstate F
 GLIBC_2.4 pthread_setcanceltype F
 GLIBC_2.4 pthread_setconcurrency F
-GLIBC_2.4 pthread_setschedparam F
 GLIBC_2.4 pthread_setschedprio F
 GLIBC_2.4 pthread_setspecific F
 GLIBC_2.4 pthread_sigmask F
index cabc278df8dafbb2e488be0e312a649f6800a924..129c64b0a7f4498d2fddea6dc4bd24993d66e372 100644 (file)
@@ -184,7 +184,6 @@ GLIBC_2.4 pthread_setaffinity_np F
 GLIBC_2.4 pthread_setcancelstate F
 GLIBC_2.4 pthread_setcanceltype F
 GLIBC_2.4 pthread_setconcurrency F
-GLIBC_2.4 pthread_setschedparam F
 GLIBC_2.4 pthread_setschedprio F
 GLIBC_2.4 pthread_setspecific F
 GLIBC_2.4 pthread_sigmask F
index 394fe5e5609be2dc14c37bad23d9892e4ca8413e..8b72528819d857297c0d42e029384fe75aaafcb0 100644 (file)
@@ -164,7 +164,6 @@ GLIBC_2.29 pthread_setcancelstate F
 GLIBC_2.29 pthread_setcanceltype F
 GLIBC_2.29 pthread_setconcurrency F
 GLIBC_2.29 pthread_setname_np F
-GLIBC_2.29 pthread_setschedparam F
 GLIBC_2.29 pthread_setschedprio F
 GLIBC_2.29 pthread_setspecific F
 GLIBC_2.29 pthread_sigmask F
index f3606ce4e8c7e863f1cc74a701e697a55227de14..84fa775d95d8b1a09d652f36f0ec711d5707d166 100644 (file)
@@ -135,7 +135,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index 5a6a1d775c2a8c3854d4c44e148bee2cb5360c5f..4727bd5d4340b0d651ce9dad6cb1f245ab1ec8d1 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index e7545c83b5dbc58f1b54b2f5f3ae657abae38607..3d947a66aa1d20ea2391fa0b9b1f3f11c516f45e 100644 (file)
@@ -135,7 +135,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index cabc278df8dafbb2e488be0e312a649f6800a924..129c64b0a7f4498d2fddea6dc4bd24993d66e372 100644 (file)
@@ -184,7 +184,6 @@ GLIBC_2.4 pthread_setaffinity_np F
 GLIBC_2.4 pthread_setcancelstate F
 GLIBC_2.4 pthread_setcanceltype F
 GLIBC_2.4 pthread_setconcurrency F
-GLIBC_2.4 pthread_setschedparam F
 GLIBC_2.4 pthread_setschedprio F
 GLIBC_2.4 pthread_setspecific F
 GLIBC_2.4 pthread_sigmask F
index 5a6a1d775c2a8c3854d4c44e148bee2cb5360c5f..4727bd5d4340b0d651ce9dad6cb1f245ab1ec8d1 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index fa5c6d27735169246629d73523f898ad9f8c237d..78885c05cfb41eb1238cebcb4b8dae001ca1aab1 100644 (file)
@@ -156,7 +156,6 @@ GLIBC_2.18 pthread_setcancelstate F
 GLIBC_2.18 pthread_setcanceltype F
 GLIBC_2.18 pthread_setconcurrency F
 GLIBC_2.18 pthread_setname_np F
-GLIBC_2.18 pthread_setschedparam F
 GLIBC_2.18 pthread_setschedprio F
 GLIBC_2.18 pthread_setspecific F
 GLIBC_2.18 pthread_sigmask F
index fa5c6d27735169246629d73523f898ad9f8c237d..78885c05cfb41eb1238cebcb4b8dae001ca1aab1 100644 (file)
@@ -156,7 +156,6 @@ GLIBC_2.18 pthread_setcancelstate F
 GLIBC_2.18 pthread_setcanceltype F
 GLIBC_2.18 pthread_setconcurrency F
 GLIBC_2.18 pthread_setname_np F
-GLIBC_2.18 pthread_setschedparam F
 GLIBC_2.18 pthread_setschedprio F
 GLIBC_2.18 pthread_setspecific F
 GLIBC_2.18 pthread_sigmask F
index 2a2343cf688d47809af00ecdba99fecd2d1155b1..62f7a3f349df905b0c05d0328236f0bd15d415e5 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index 2a2343cf688d47809af00ecdba99fecd2d1155b1..62f7a3f349df905b0c05d0328236f0bd15d415e5 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index f454c862a8c427eeb0c87fcfaad97a7a150e5bf6..45ebcf5a6cc119c7b22d8ec9c3c9299530150a8b 100644 (file)
@@ -156,7 +156,6 @@ GLIBC_2.21 pthread_setcancelstate F
 GLIBC_2.21 pthread_setcanceltype F
 GLIBC_2.21 pthread_setconcurrency F
 GLIBC_2.21 pthread_setname_np F
-GLIBC_2.21 pthread_setschedparam F
 GLIBC_2.21 pthread_setschedprio F
 GLIBC_2.21 pthread_setspecific F
 GLIBC_2.21 pthread_sigmask F
index 4d3332216f6ead26c09a1f9631a79605cc4f5ddc..2f4ed55693c476f71dc0bdd268a3ada1e8c69370 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index ecc6a3bd60fdcd6c60e2a0d7d4cc3f0279f70cae..f4d34b1c47bef19377e85273bd76ef5317ceb697 100644 (file)
@@ -156,7 +156,6 @@ GLIBC_2.3 pthread_rwlockattr_setpshared F
 GLIBC_2.3 pthread_setcancelstate F
 GLIBC_2.3 pthread_setcanceltype F
 GLIBC_2.3 pthread_setconcurrency F
-GLIBC_2.3 pthread_setschedparam F
 GLIBC_2.3 pthread_setspecific F
 GLIBC_2.3 pthread_sigmask F
 GLIBC_2.3 pthread_spin_destroy F
index a0cff69954775ae65882a98e73101d168ad2735a..d65beba9583e0df4593fbe4cd7b18c8efa48b7d4 100644 (file)
@@ -154,7 +154,6 @@ GLIBC_2.17 pthread_setcancelstate F
 GLIBC_2.17 pthread_setcanceltype F
 GLIBC_2.17 pthread_setconcurrency F
 GLIBC_2.17 pthread_setname_np F
-GLIBC_2.17 pthread_setschedparam F
 GLIBC_2.17 pthread_setschedprio F
 GLIBC_2.17 pthread_setspecific F
 GLIBC_2.17 pthread_sigmask F
index 1e998668f784a7069a953bb62e4a924ba7de361a..5610e51e10c1536fd94826ac785b41a7948429a3 100644 (file)
@@ -153,7 +153,6 @@ GLIBC_2.27 pthread_setcancelstate F
 GLIBC_2.27 pthread_setcanceltype F
 GLIBC_2.27 pthread_setconcurrency F
 GLIBC_2.27 pthread_setname_np F
-GLIBC_2.27 pthread_setschedparam F
 GLIBC_2.27 pthread_setschedprio F
 GLIBC_2.27 pthread_setspecific F
 GLIBC_2.27 pthread_sigmask F
index 9495b0300b37a74d61cbac2f09c61ffbf633b3f8..80ad434007ded50ba122de15541f306dafec015d 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index 6de0b3c2bbba6d08780213d72bc85576c7925ea4..daef2b5cd57f04fc03a23374153170e3dc94ba10 100644 (file)
@@ -137,7 +137,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index f3606ce4e8c7e863f1cc74a701e697a55227de14..84fa775d95d8b1a09d652f36f0ec711d5707d166 100644 (file)
@@ -135,7 +135,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index f3606ce4e8c7e863f1cc74a701e697a55227de14..84fa775d95d8b1a09d652f36f0ec711d5707d166 100644 (file)
@@ -135,7 +135,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index bb718e40377315b912de99ee132e85ff02cf525b..ffd443422d7b1cd9dc8357f26c563b29663635e6 100644 (file)
@@ -70,7 +70,6 @@ GLIBC_2.0 pthread_mutexattr_setkind_np F
 GLIBC_2.0 pthread_once F
 GLIBC_2.0 pthread_setcancelstate F
 GLIBC_2.0 pthread_setcanceltype F
-GLIBC_2.0 pthread_setschedparam F
 GLIBC_2.0 pthread_setspecific F
 GLIBC_2.0 pthread_sigmask F
 GLIBC_2.0 pthread_testcancel F
index e7545c83b5dbc58f1b54b2f5f3ae657abae38607..3d947a66aa1d20ea2391fa0b9b1f3f11c516f45e 100644 (file)
@@ -135,7 +135,6 @@ GLIBC_2.2 pthread_rwlockattr_setpshared F
 GLIBC_2.2 pthread_setcancelstate F
 GLIBC_2.2 pthread_setcanceltype F
 GLIBC_2.2 pthread_setconcurrency F
-GLIBC_2.2 pthread_setschedparam F
 GLIBC_2.2 pthread_setspecific F
 GLIBC_2.2 pthread_sigmask F
 GLIBC_2.2 pthread_spin_destroy F
index 2071b125e8f25457a5abcd2c4a754532b55f8088..a6bc9f4a557c5d7c5cb7cbcc4013560150e132c0 100644 (file)
@@ -136,7 +136,6 @@ GLIBC_2.2.5 pthread_rwlockattr_setpshared F
 GLIBC_2.2.5 pthread_setcancelstate F
 GLIBC_2.2.5 pthread_setcanceltype F
 GLIBC_2.2.5 pthread_setconcurrency F
-GLIBC_2.2.5 pthread_setschedparam F
 GLIBC_2.2.5 pthread_setspecific F
 GLIBC_2.2.5 pthread_sigmask F
 GLIBC_2.2.5 pthread_spin_destroy F
index 102f4fb1ffeed89dcda2f3f418d5a3510e24a447..17f6ec438f56c9b721164800d3192f87ecce0a1e 100644 (file)
@@ -154,7 +154,6 @@ GLIBC_2.16 pthread_setcancelstate F
 GLIBC_2.16 pthread_setcanceltype F
 GLIBC_2.16 pthread_setconcurrency F
 GLIBC_2.16 pthread_setname_np F
-GLIBC_2.16 pthread_setschedparam F
 GLIBC_2.16 pthread_setschedprio F
 GLIBC_2.16 pthread_setspecific F
 GLIBC_2.16 pthread_sigmask F