nptl: Move pthread_setschedparam 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 2020-02-10 11:51:05 +01:00
parent d5074b30fe
commit f2323817dd
32 changed files with 1 additions and 38 deletions

View 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 \

View 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;

View 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,

View 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,

View 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 *);

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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